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

figure not rendered in jupyter notebook with default renderer #4960

Open
rra88 opened this issue Jan 13, 2025 · 0 comments
Open

figure not rendered in jupyter notebook with default renderer #4960

rra88 opened this issue Jan 13, 2025 · 0 comments
Labels
bug something broken P2 considered for next cycle

Comments

@rra88
Copy link

rra88 commented Jan 13, 2025

Running the example code below (from https://plotly.com/python/graph-objects/) in a jupyter notebook, the figure does not render. Overriding the default renderer like so
fig.show(renderer='iframe')
causes the figure to render, but I want to use the default renderer.


df = pd.DataFrame({
  "Fruit": ["Apples", "Oranges", "Bananas", "Apples", "Oranges", "Bananas"],
  "Contestant": ["Alex", "Alex", "Alex", "Jordan", "Jordan", "Jordan"],
  "Number Eaten": [2, 1, 3, 1, 3, 2],
})
import plotly.express as px

fig = px.bar(df, x="Fruit", y="Number Eaten", color="Contestant", barmode="group")
fig.show()

The packages of the environment I used: package_list.txt

@gvwilson gvwilson added bug something broken P2 considered for next cycle labels Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken P2 considered for next cycle
Projects
None yet
Development

No branches or pull requests

2 participants