plotting function disabled #1394
-
Dear all, I'm using Ansys student version, and running pyMAPDL codes on Jupyter Notebook. The virtual environment has had all recommended packages like ipyvtklink installed. My problem is that all the pyMAPDL plotting (eplot(), aplot(), lplot(), plot_nodal_eqv_stress() etc.) functions will be disabled/enabled together, completely randomly. Sometimes they come back after rebooting the system, sometimes by switching a computer. However, the other plotting functions in the same code from Matplotlib work reliability. When the pyMAPDL plotting was disabled, it will either show a text message (e.g. ViewInteractiveWidget(height=768, layout=Layout(height='auto', width='100%'), width=1024)), or shows nothing. I have attached two snapshots for the same code, both were at times when the plotting was disabled. May I know what's the possible causes of the randomly disable plotting, and how can I fix it? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Disable notebook plotting for the moment with # after importing ansys-mapdl-core
pyvista.global_theme.notebook = False |
Beta Was this translation helpful? Give feedback.
-
Dear Akaszynski, Thanks so much for your reply! After I run the script by specifying in each plot 'notebook = False', I'm able to generate a pop out window with the plot. However, if I change back to 'notebook = True', I'm still not able to generate the embedded plots inside Jupyter notebook. May I know the cause? Thank you! |
Beta Was this translation helpful? Give feedback.
Dear Akaszynski,
Thanks so much for your reply!
After I run the script by specifying in each plot 'notebook = False', I'm able to generate a pop out window with the plot.
However, if I change back to 'notebook = True', I'm still not able to generate the embedded plots inside Jupyter notebook. May I know the cause?
Thank you!
hawkoli1987