Skip to content

plot() and WebIO failure in Jupyter notebook #505

@jjstickel

Description

@jjstickel

Based on documentation (README.md of this package and docs of WebIO), 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 JuliaGizmos/WebIO.jl#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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions