Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I'm having trouble getting anything plotted using this -- either via plotly or matplotlib (they don't appear to have seaborn available).

Have you (any one else) succeeded?

Not being able to display plots seems a major limitation.



This works for me in Chrome 90 on Windows

  import matplotlib.pyplot as plt
  plt.plot([1,2,3,4,5], [1,4,3,2,5])
  plt.show()


Thanks -- it looks like the issue occurs when the import is in a different cell; or when the plotting cell is being re-run.

Try splitting cells on the first line and re-running the second.

I quickly get Recursion-Depth-Max errors.


I just split the cells and it worked fine. Weird.


The next version of plotly should be more compatible with Pyodide :)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: