JuliaPlots / JuliaPlots/PlotlyJS.jl

plot() and WebIO failure in Jupyter notebook

Open
#505 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Julia
Stars
444
Forks
86
PR merge metrics
No merged PRs in 30d

Description

Based on documentation (`README.md` of this package and [docs of WebIO](https://juliagizmos.github.io/WebIO.jl/latest/providers/ijulia/)), PlotlyJS uses a Jupyter extension (`webio_jupyter_extension`) to render plots in Jupyter. However, that extension (v0.1.0) is 4 years old (based on release date in pypi) and does not work with Jupyterlab v4 as reported in https://github.com/JuliaGizmos/WebIO.jl/issues/514. Consequently, the figure object created with `plot()` will not display and instead generates the error `WebIO not detected.`

However, as I report in that same issue, it is possible to display the lower-level `Plot()` object. Specifically,
```
fig = plot()
display(fig.plot)
```
will show the plot without the webio-jupyter extension installed. So, I'm asking the developers, is that a reasonable workaround that would be expected to continue to work in the future? If so, I can spend a few minutes to create a PR to update the readme and docs to promote this usage in Jupyter notebooks.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.