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

Interactive Plotly Visuals Not Displaying in Jupyter Notebook (pyo.iplot Keeps Running) #16247

Open
1 of 2 tasks
JayDS22 opened this issue Nov 24, 2024 · 0 comments
Open
1 of 2 tasks
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug

Comments

@JayDS22
Copy link

JayDS22 commented Nov 24, 2024

Applies To

  • Notebooks (.ipynb files)
  • Interactive Window and/or Cell Scripts (.py files with #%% markers)

What happened?

Description

I'm trying to create an interactive Plotly visualization in a Jupyter Notebook. However, when I run the code below, the last cell keeps running indefinitely without producing any output or errors.

Code Snippet

import numpy as np
import pandas as pd
%matplotlib inline
%matplotlib widget

import plotly.offline as pyo
from plotly.offline import download_plotlyjs, init_notebook_mode, plot, iplot
import plotly.graph_objects as go

# Initialize Plotly
pyo.init_notebook_mode(connected=True)

# Sample Plotly Scatter Plot
fig = go.Figure(data=go.Scatter(x=[1, 2, 3], y=[4, 5, 6]))
pyo.iplot(fig)

Environment

Python Version: 3.9
Jupyter Notebook/Lab Version: Jupyter Notebook 6.4.5
Plotly Version: 5.17.0
Browser: Google Chrome 118.0.x

VS Code Version

1.93.1

Jupyter Extension Version

v2024.8.1

Jupyter logs

The notebook cell runs indefinitely without displaying the plot or throwing any errors.

Coding Language and Runtime Version

No response

Language Extension Version (if applicable)

No response

Anaconda Version (if applicable)

No response

Running Jupyter locally or remotely?

None

@JayDS22 JayDS22 added the bug Issue identified by VS Code Team member as probable bug label Nov 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug
Projects
None yet
Development

No branches or pull requests

2 participants