Can somebody familiar with #JupyterLab or #JupyterNotebook please tell me why the top cell in this notebook doesn't render the HTML, when the other two cells do? Everything I'm reading online suggests it should render it. https://gist.github.com/mattcen/c5db6e729dfe9e949596ffb87207cb1b
In the "Rich representation" section of this notebook (https://jupyterlite.github.io/demo/lab?path=.%2Fpython.ipynb) it does something similar and Just Works (obviously that's #Pyodide rather than CPython, but I don't think that should matter).
I am guessing maybe there's a library I haven't installed; for this example I just created a new virtual environment and installed `jupyterlab` and nothing else.
#Jupyter #IPython
#jupyterlab #jupyternotebook #pyodide #jupyter #ipython
@adrin this #pyodide #jupyterlite #wasm deployment of the scikit-learn examples gallery is really mind blowing!
I just ran this complete tutorial involving pandas-based feature engineering, non trivial matplotlib, complex pipelines with cyclical spline transformers, Nystroem kernel approximation and histogram-based gradient boosting all on my android phone and it all worked on the first try almost as fast as on laptop computer with no setup!
I'm attending the talk "The CPU in your browser: WebAssembly demystified" by Antonio Cuni from Anaconda at PyCon DE 2023 in Berlin 馃嚛馃嚜馃悕
#PyConDE #PyCon #WebAssembly #Python #Pyodide #CPython #WASM #PyScript
#pyconde #pycon #webassembly #python #pyodide #cpython #wasm #Pyscript
Now Jan-Hendrik M眉ller introducing Jupyterlite
Web browser support HTML, CSS, Javascript; now also #Webassemply: building on that, #pyodide was created to run python code directly in the web browser, using <py-script> tags.
Next step: a jupyter-like framework.
sphinx-gallery now has an experimental #JupyterLite integration (with the #pyodide kernel) !
Any project that uses it, can now easly run examples directly in the browser .
Thanks to @amueller and Lo茂c Est猫ve for working on this integration.
I'm playing with #pyodide (https://pyodide.org), so that users can try out my Python packages directly into the docs pages! The editor is #ace (https://ace.c9.io/), and the output is highlighted with #highlightjs (https://highlightjs.org/). I'm trying to improve the look and feel but it's already amazing.
@pbeens that's a great question! What I suspect at this point:
- Anaconda is backing it, which increases the likelihood it might catch in some circles. I think they like the idea of making the data science and data viz tools available in the browser without installation hurdles, and without needing a kernel server.
- I use Python for education and #CreativeCoding / #NewMediaArt / #GenerativeDesign and I always stumble with 1) Python installation issues in class labs and 2) JavaScript is hard for me, but web sharing is something transformational for sharing work (exercises, experiments, artwork). So I hope it will help me with those...
- it is #pyodide based, as I already use another pyodide based tool that could soon be pyscript based, https://berinhard.github.io/pyp5js/pyodide/ , I think pyscript/pyodide is probably here to stay.
#creativecoding #newmediaart #generativedesign #pyodide
@castedo @kitchensjn it had been a while, so I fired up one of the interactive #python visualizations from my site. It takes ages for the Binder stuff to spin up. I will recreate one of them with #pyodide and #msprime this week.
(Haven't been on social media much because Math Is Happening but I did have a question about #Pyodide and running numeric #Python and #Scipy stuff in #NodeJS in case anyone knows anything about that black magic: https://stackoverflow.com/questions/75317928/calling-scipy-special-functions-from-pyodide-in-node-js)
#pyodide #python #scipy #nodejs
#Python 3.11 support just landed for #Pyodide! https://github.com/pyodide/pyodide/pull/3252
(Benchmarks are being attempted in https://github.com/pyodide/pyodide/issues/3503)
I created a JSON to #pydantic schema translator that runs entirely in the browser using #pyscript / #pyodide
Check it out here: https://falkben.github.io/json-to-pydantic/
I made this after posting several months back about a similar tool, and commenting that I thought it would be valuable to use pyscript for this (privacy).
Turns out, running #python in the browser is pretty awesome!
If you have feedback let me know!
#pydantic #Pyscript #pyodide #python
Mi regalo de reyes de hoy ha sido descubrir c贸mo ejecutar #Jupyterlab directamente desde #github utilizando el kernel de #pyodide, distribuci贸n que hace posible instalar y ejecutar paquetes de #Python en el navegador con #micropip
Me he creado una copia del repositorio para experimentar y es perfectamente funcional a pesar de encontrarse en primeras fases de desarrollo. Implementa adem谩s ejemplo para ejecutar javascript, p5 y m谩s cosas 馃槏
#micropip #Python #pyodide #GitHub #jupyterlab
Pyodide 0.22.0 is now released.
It includes improvements to the Py馃JS foreign function interface, makes it possible to create regular venv running Python with Node.js, and improves the modularity of #pyodide components.
Release notes:
https://blog.pyodide.org/posts/0.22-release/
A big step toward making #emscriptenforge packages usable from #pyodide. Upgraded the emscripten-version to the same as #pyodide and use the same naming convention for shared-libs. All packages are building again! only 30 commits and 120 files changed =) https://github.com/emscripten-forge/recipes/pull/241
PyScript 2022.12.1 has shipped
https://github.com/pyscript/pyscript/releases/tag/2022.12.1
"PyScript is a framework that allows users to create rich Python applications in the browser using HTML's interface and the power of Pyodide, WASM, and modern web technologies."
#pyscript_dev #Pyscript #python #pyodide #wasm #browser
Updated #ChicagoCrimes #PyScript #dataApp with gzipped CSV (~3.25MB). The app now loads 215,551 crime reports with #pyodide in a browser in about 8 seconds total for the #Python runtime, data transformation with #pandas 馃惣 & charting with #Altair 馃搳馃搱
https://randomfractals.github.io/chicago-crimes/apps/pyscript/
#altair #pandas #python #pyodide #dataapp #Pyscript #ChicagoCrimes
Tempted to pull apart the #pyodide packaging for @simon鈥榮 #datasettelite to see if I can whip together an app to download files from an API for an old mate who doesn鈥檛 command line much any more. #WASM #python
#pyodide #datasettelite #wasm #python