Skip to content

Offline mode not displaying inline in Jupyter notebook master? #452

@fperez

Description

@fperez

I hadn't tested recently, but today, using master of the Jupyter notebook, I can't get offline plots to display inline, instead I get the external temporary file. Consider this simple test:

from plotly import __version__
from plotly.offline import init_notebook_mode, plot
from plotly.graph_objs import Scatter

init_notebook_mode()

print("plotly version:", __version__)
plot([Scatter(x=[1, 2, 3], y=[3, 1, 6])])

I get for output:

plotly version: 1.9.10
Out[1]: 'file:///Users/fperez/tmp/temp-plot.html'

and the plot correctly opening in a new tab by itself, but no inline notebook output. Here's a screenshot for reference:

image

In the JS console, I don't see anything that immediately points to the problem. Here's a screenshot, b/c copy-pasting text from the JS console makes a mish-mash of the formatting:

image

The above were from current Chrome on OSX, but I replicated the problem on Safari.

Any thoughts on how to proceed much appreciated. Thanks!

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