-
Notifications
You must be signed in to change notification settings - Fork 9
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
No display in Jupyter notebooks #3
Comments
Yes, this is an issue with the PGF backend in general. Actually, I guess the most reasonable way to do it would be to load the PDF file that is created into the notebook again, as proposed here. One could make an api for that like rsmf.save_and_show("output.pdf") What do you think @quantshah ? |
I think the best would be to dynamically detect if one can import |
If I use your code in the way I proposed in #4 things work out of the box in Jupyter notebooks. |
This looks interesting but I feel like the more we keep the rsmf code in the background and use matplotlib defaults, the better. So I could make the plots show on notebooks directly and save them like regular matplotlib figures using just the initialisation at the top. |
Now I think the best way forward is to just wrap the IPython IFrame explained here as |
Okay, this doesn't work as expected, see PR #14 |
I suppose this was not the original intention of the package - to support plotting inside a notebook. But if I do this in a Jupyter notebook, I cannot see any plots:
However there are no issues if I save the plot, even in a notebook.
The text was updated successfully, but these errors were encountered: