-
Notifications
You must be signed in to change notification settings - Fork 179
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
Rich display progress bar #1375
Conversation
Based on the rich display system, supports IPython >= 5. Addresses #1087.
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.
Works for me on the latest Jupyter and IPython, after it hasn't worked for a really long time. Got some flake8 errors, but those should be trivial to fix. Thanks for taking the time to make this work.
Does not work in the QtConsole (the qt-console requests the text/html conversion, but does not actually use it). |
Did the previous one work in the QT Console? Even if it did, I would
consider this PR to be such an important improvement that breaking QT
Console is acceptable.
…On 25 Oct 2017 4:18 pm, "Jan Gosmann" ***@***.***> wrote:
Does not work in the QtConsole (the qt-console requests the text/html
conversion, but does not actually use it).
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1375 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AB1HaYw0pQr7e7Ij3CnfBoXAi4i8rX40ks5sv5ehgaJpZM4QGNWm>
.
|
The QtConsole should have defaulted to the |
Ok, so the current state is now:
|
The choices in the comment are meant to reflect that most people (I assume) use either |
I think this is fine. Is there some other reason this is still tagged as WIP? |
Not really, just forgot to remove the tag. Might add some more documentation maybe. |
So #1380 is based on this PR and rewrites some of the code. Not sure whether to close this PR and move all discussion and review to the new PR or whether to get this one merged first and then rebase the other PR? |
Hmm... if it rewrites code I'm inclined to close this one and move to the new PR, unless you have strong feelings for doing this one first @jgosmann |
Sounds perfectly fine to me. |
Motivation and context:
%load_ext nengo.ipynb
and the IPython progress bar currently break in in recent Jupyter notebook/IPython versions (potentially completely crashing the notebook frontend). Also, the implementation based on widgets has proven to be not very robust as the widget API has been evolving quickly.This PR implements a new
IPython5ProgressBar
compatible with IPython 5 and newer. The HTML code is based on the oldIPython2ProgressBar
, but instead of using widgets, the IPython rich display system is used which allows updates to displays since IPython 5. As we do not require to capture any user interaction that is completely sufficient. It also allows us to display the HTML progress bar in notebooks without%load_ext nengo.ipynb
.The notebook extension
nengo.ipynb
is deprecated with this PR as well as theIPython2ProgressBar
and loading it will issue a warning. At some point%load_ext nengo.ipynb
should become a no-op or deleted (but that would break backwards compatibility).Interactions with other PRs:
none
How has this been tested?
Tested the following scenarios:
ipython
on the terminalpython
on the terminalStill to test:
ipython qtconsole
?How long should this take to review?
Types of changes:
Checklist:
Still to do: