Skip to content
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

Fix modifying(!) functions not updating SyncPlots in Jupyter #452

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

halleysfifthinc
Copy link

This PR depends on JuliaGizmos/WebIO.jl #497 and/or JuliaGizmos/WebIO.jl #498.

For a while now, plot modifying functions (e.g. add_vline!, etc) did not actually update the existing plot in Jupyter, and the plot needed to be redisplayed to see any changes.

I discover that the plotly mime type appears to have a higher precedence in Jupyter (unclear if this is due to the jupyterlab-plotly extension or something in IJulia), and that the definition of an IJulia.display_dict method also interfered with rendering the WebIO scope (and instead resulted in the [false] default warning that WebIO was not detected, when it is in fact correctly installed and detected/functioning).

Without my WebIO PR's, plots won't update yet in Jupyter, but the WebIO rendered scope is now showing properly, and the other mime types are still present in the notebook/cell outputs "data" field (in order, `["application/vnd.webio.node+json", "image/png", "image/svg+xml", "text/html", "text/plain"]).

The plotly mime appears to have a higher precedence (due to IJulia or
the presence of the plotly jupyter extension) which prevents the WebIO
scope from being rendered.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant