Open chart-magnum opened 2 years ago
For Jupyter notebook, it does not work however.
Quite right. The way I'm displaying the output only works on jupyterlab, but this doesn't seem like a difficult patch. I'll work on this and have a fix by the end of the week.
Another question is, would it be possible to store a plot in an HTML output?
You can do that with pure pyvista plots, just not pymapdl plots (just yet):
This is documented in docs.pyvista.com, but I thought to make note of it here:
pyvista.set_jupyter_backend('static') # static images
pyvista.set_jupyter_backend('pythreejs') # interactive plotting
from ansys.mapdl.core import launch_mapdl
# pymapdl code...
Note that you'll need the latest pyvista==0.32.1
to use pythreejs
, but it works quite a bit better than the default backend (minus missing scalar bars). Those will only work under jupyterlab until I get the aforementioned patch out.
@akaszynski Thank you very much for prompt reply and prioritizing the patch! Looking forward to giving it a try!
Hi @akaszynski,
is there any update on this matter, please? If not, maybe I could try to introduce a fix myself?
Thank you in advance, Michał.
Hi!
I'm trying to get an interactive plot with pymapdl. I use an example from the documentation.
In regular python terminal, it opens an interactive window.![image](https://user-images.githubusercontent.com/88663349/133617251-3af5c4ba-d198-4bb9-9248-14805a8401e2.png)
For Jupyter notebook, it does not work however.![image](https://user-images.githubusercontent.com/88663349/133617516-3a0821b2-e664-46b3-950d-f8f9652746c9.png)
While for Jupyter lab it performs ok.![image](https://user-images.githubusercontent.com/88663349/133617834-5ef0f738-4fb7-42d3-90ca-9b805ef1b757.png)
Below is a PYMAPDL report (same output for notebook and lab):
My users, however, use regular notebooks. What do I miss to make it work for a notebook? Another question is, would it be possible to store a plot in an HTML output?
Thank you in advance!