You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 3, 2024. It is now read-only.
Trying any of the examples direclty in an IPython session does not work. Namely when you do fig.show() nothing happens.
(I've already posted this on stackoverflow and the community and thought to maybe post here since I didn't get any help there.)
Reproduce
pip install ipython pandas plotly
python myscript.py
Paste example from below
myscript.py
import plotly.express as px
if __name__ == "__main__":
import IPython; IPython.embed(using=False)
pasted example
In [1]: df = px.data.gapminder().query("country=='Canada'")
...: fig = px.line(df, x="year", y="lifeExp", title='Life expectancy in Canada')
...: fig.show()
...:
In [2]:
This seems like a bug since it seems to work in other ways - e.g. running ipython directly and pasting or having the example directly inside the __main__.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Trying any of the examples direclty in an IPython session does not work. Namely when you do
fig.show()
nothing happens.(I've already posted this on stackoverflow and the community and thought to maybe post here since I didn't get any help there.)
Reproduce
pip install ipython pandas plotly
python myscript.py
myscript.py
pasted example
This seems like a bug since it seems to work in other ways - e.g. running
ipython
directly and pasting or having the example directly inside the__main__
.The text was updated successfully, but these errors were encountered: