tpvasconcelos / ridgeplot

Beautiful ridgeline plots in python
https://ridgeplot.readthedocs.io/
MIT License
62 stars 3 forks source link

Plot not showing up in Jupyter notebook (VSCode) #181

Closed krunolp closed 5 months ago

krunolp commented 5 months ago

Hi,

When I run the code from the example in my Jupyter Notebook using VSCode, I do not see any output:

image

Do you maybe know what might be causing this?

tpvasconcelos commented 5 months ago

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?

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:

image

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.

krunolp commented 5 months ago

Thank you @tpvasconcelos for the prompt answer, both of your answers solved my problem! The workaround is particularly neat!