Plot not showing up in Jupyter notebook (VSCode) #213
-
Hi, When I run the code from the example in my Jupyter Notebook using VSCode, I do not see any output: Do you maybe know what might be causing this? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @krunolp! I think this might be a problem with VSCode and not Can you try running this simple plotly example and let me know if it works for you? import plotly.express as px
fig = px.line(x=["a","b","c"], y=[1,3,2], title="sample figure")
fig.show() You should see this: If you don't maybe, this could help you: https://stackoverflow.com/questions/64849484/display-plotly-plot-inside-vs-code As a workaround, you could try to call |
Beta Was this translation helpful? Give feedback.
-
Thank you @tpvasconcelos for the prompt answer, both of your answers solved my problem! The workaround is particularly neat! |
Beta Was this translation helpful? Give feedback.
Hi @krunolp! I think this might be a problem with VSCode and not
ridgeplot
.Can you try running this simple plotly example and let me know if it works for you?
You should see this:
If you don't maybe, this could help you: https://stackoverflow.com/questions/64849484/display-plotly-plot-inside-vs-code
As a workaround, you could try to call
fig.show("browser")
to open the figure in a new browser tab.