18 ms·
Try it in JupyterLab using JupyterLite- https://jupyterlite.readthedocs.io/en/latest/_static/lab/index.html https://jupyterlite.readthedocs.io/en/latest/_static
by randomfool 5y ago
Try it in JupyterLab using JupyterLite- https://jupyterlite.readthedocs.io/en/latest/_static/lab/index.html https://jupyterlite.readthedocs.io/en/latest/_static/lab/ind...
(choose the pyolite option for Pyodide)
This project is actually quite impressive, I believe they've even gotten some pip install paths working??
- rthz 5y agoYes, installing pure Python packages that have wheels from PyPi works. Assuming they don't use functionality that's not supported by the WebAssembly VM such as multiprocessing, threading (for now), and sockets.
- BiteCode_dev 5y agoAlso, Basthon: https://notebook.basthon.fr/ https://notebook.basthon.fr/
- mjburgess 5y agoI'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.
- charleover 5y agoThis 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()
- mjburgess 5y agoThanks -- 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.
- scoopertrooper 5y agoI just split the cells and it worked fine. Weird.
- nicolaskruchten 5y agoThe next version of plotly should be more compatible with Pyodide :)
- gourneau 5y agoWow amazing, thanks for sharing.