-
Notifications
You must be signed in to change notification settings - Fork 2
add plt.show() to notebooks #109
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the interactive example in binaural_synthesis is not working, is there a solution?
otherwise approved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ahms5 as far as I remember, the example never worked in html. If we want to fix this, I would suggest to make it a separate issue.
| "nbformat_minor": 2, | ||
| "nbsphinx": { | ||
| "execute": "never" | ||
| } | ||
| "nbformat_minor": 2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why was this changed here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure why running the notebook updated this metadata, i reverted the changes.
No, and it will not work with the current implementation since there is no active interpreter running to execute the python code. This example needs to be run locally or on binder. |
| "\n", | ||
| "pf.plot.time(audio_data)" | ||
| "pf.plot.time(audio_data)\n", | ||
| "plt.show()" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No figure is shown at https://pyfar-gallery--109.org.readthedocs.build/en/109/contribute/template_oer.html. Is this how it should be?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As far as I remember this notebook does not get executed (and is not intended to), but statically rendered, in which case there's also not going to be a plot output.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also remember that this was on purpose.
But i just realized that the latest template-notebook is stored in closed-educational and that #107 is still open.
Since sometimes plots are not displayed using %matplotlib inline, plt.show() is added to all plots for safety.