-
Notifications
You must be signed in to change notification settings - Fork 157
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
Viewers don't inline well in IPython notebook #368
Comments
The basic mechanism is explained at http://stackoverflow.com/a/12389435/2019542 and a FiPy user already came up with their own implementation. Trac comment by guyer on 01-29-2013 at 15:57 |
With the following pull request, it is possible to do from IPython.display import clear_output
:
:
vw = fp.Viewer(vars=var)
for step in range(steps):
:
clear_output()
display(vw) Note: it is necessary to do
Trac comment by guyer on 01-29-2013 at 16:03 |
Seems to work for me. Merged with 755bbc2 Trac comment by wd15 on 01-30-2013 at 11:00 |
Adding wait=True to clear_output() makes it cleaner. |
The [http://ipython.org/ipython-doc/dev/interactive/htmlnotebook.html IPython notebook ] is capable of inline display of Matplotlib figures via
and FiPy viewers do appear when instantiated, but subsequent calls to
viewer.plot()
don't do anything useful.It would be nice if there were a way to visualize, or even animate, the viewers within the notebook.
Imported from trac ticket #494, created by guyer on 01-29-2013 at 15:45, last modified: 01-30-2013 at 11:00
The text was updated successfully, but these errors were encountered: