Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MeshViewer rendertype == "Website" #18

Open
otmanon opened this issue Jul 9, 2020 · 1 comment
Open

MeshViewer rendertype == "Website" #18

otmanon opened this issue Jul 9, 2020 · 1 comment

Comments

@otmanon
Copy link

otmanon commented Jul 9, 2020

Hi!
This viewer works great when I tried it for jupyter notebook! I'd like to do more complex stuff in a different IDE like pycharm where I can debug more efficiently, and I can't get it to work. Doing some digging, I see I can either render it offline, on a website, or in jupyter. Is there any documentation for getting it to run on a webstie I could look at? How would that work? Could I have my code in pycharm, click, run, and an html file would be generated?
Thanks
Otman

@skoch9
Copy link
Owner

skoch9 commented Jul 11, 2020

Hi Otman,
some IDE's (and also Pycharm) support to work directly with Jupyter Notebooks, for those the visualization should also work out of the box.There are the 3 rendertypes that you mentioned. The type "Website" we use for rendering a static html version of larger notebooks in an automatic conversion process within mkdocs. For your usecase, the type "Offline" is the right mode and you can switch to this mode by running

import meshplot as mp 
mp.offline()

The actual plot you can then run and save with mp.plot(v, f, filename="myplot").

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants