treyhunner, to python
@treyhunner@mastodon.social avatar

Today I'm wondering how I could get the new Python 3.13 REPL working in WebAssembly in the browser. 🤔

xterm-pty for xterm.js looks possibly helpful, but I'm unsure how to use it: https://github.com/mame/xterm-pty

I'm also wondering what CPython will need to be configured in its environment to properly trigger the new REPL.

I'm a TTY novice and definitely feel in over my head with this train of thought. 😅

treyhunner,
@treyhunner@mastodon.social avatar

I'd love to collaborate with (or shamelessly copy/mimic!) smart folks like the Pyodide devs, the PyScript devs, or @notsolonecoder... but this new REPL is so new that I doubt many WebAssembly-oriented folks have tried playing with this yet!

This thought path did inspired me to rewatch @phildini and Asheesh's talk on Python & TTYs.

It's even more interesting than I remember, possibly because I care more about TTYs now than when I fist watched it!

https://youtu.be/XVhSjZYwZJo?si=fCQ89vmrrZL4cQyY

villares, (edited ) to python
@villares@ciberlandia.pt avatar
linuxmagazine, to python
@linuxmagazine@fosstodon.org avatar

From today's Linux Update newsletter: Pete Metlcalfe shows you how to use your favorite libraries on client-side web pages with https://www.linux-magazine.com/Issues/2024/278/PyScript

coatless, to python
@coatless@mastodon.social avatar
webology, to random
@webology@mastodon.social avatar

✨ This is so cool.

😶‍🌫️ I dream of seeing Django run in the browser.

🤔 I also dream of the next generation of solutions that aren't bringing the entire Python library via Pyodide to the browser.

🤷 Why the nitpick? I want this tech to work on mobile browsers on phones that can't or don't need to bring the entire Python language and standard libraries. https://fosstodon.org/@sethmlarson/111845671845990883

paulox,
@paulox@fosstodon.org avatar

@webology have you looked in "Absurd Django" from @patrick and Wilhelm Klopp?

It's an experiment of running Django in the browser using Pyodide 💡

Try it here:
https://github.com/patrick91/absurd-django

villares, (edited ) to python
@villares@ciberlandia.pt avatar

Check here:
https://abav.lugaralgum.com/faded-parsons-visual/

I have made it with lots of help from friends, specially https://bolha.us/@lucianoratamero, it's a prototype of a tool to make/run with visual output (using the vocabulary).

As I prefer to teach with , I'm using a based hack, with names changed to match . The infrastructure is a fork from a tool by amazing @pamelafox you can also fork and adapt it easily (static pages, can be served from GitHub Pages).

The repository:

https://github.com/villares/faded-parsons-visual/blob/hack/README.md

brodriguesco, to python
@brodriguesco@fosstodon.org avatar

One can run in the browser with , and with : what languages can run in the browser thanks to ?

coatless, to python
@coatless@mastodon.social avatar

Interested in allowing 🐍 code to run seamlessly in the browser via ? The {quarto-pyodide} proof of concept unveiled at is under active development with an initial release at the end of December. In the meantime, delve into our proof of concept demo:

🚀🎥 Watch: https://www.youtube.com/watch?v=PZx9d21HnTo

📄 Explore the demo document: https://rd.thecoatlessprofessor.com/pyodide-quarto-demo/

Stay tuned for updates and get ready for more interactive coding experiences in 2024!

villares, (edited ) to random Portuguese
@villares@ciberlandia.pt avatar
underdarkGIS, (edited ) to random
@underdarkGIS@fosstodon.org avatar

Exploring the data app publishing options of #holoviz #panel.

panel convert (https://panel.holoviz.org/how_to/wasm/convert.html) looks super promising but tricky since both #folium and #geoviews seem to be missing from #pyodide

But for now, enjoy this demo #WFS viewer for visualizing data from #ogdwien @datagvat

https://mybinder.org/v2/gh/anitagraser/ogd-at-lab/main?urlpath=lab/tree/apps/panel-test.ipynb

underdarkGIS,
@underdarkGIS@fosstodon.org avatar

for future reference: there's also this bug report on for https://github.com/pyodide/pyodide/issues/4214

mattcen, to jupyter
@mattcen@aus.social avatar

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

rth, to random

Slides from my talk about and making Python packages better optimized for the browser

https://rth.github.io/talks/2023-pyodide-EuroPython.pdf

villares, to random Portuguese
@villares@ciberlandia.pt avatar

@orsinium 's package https://github.com/orsinium-labs/svg.py svg.py is just great, check out the playground:

https://svg.orsinium.dev/

I wonder if I can make some stuff with it at some point!

villares, (edited ) to python Portuguese
@villares@ciberlandia.pt avatar

@Timteachesmath Sir, do you have a minute to hear the word of our lord Processing + Python that came amongst us as py5coding.org ?

Check out https://abav.lugaralgum.com/como-instalar-py5/index-EN.html

villares, (edited )
@villares@ciberlandia.pt avatar

@Timteachesmath yes, there are some projects, check out https://github.com/villares/Resources-for-teaching-programming#processing--python-tools-table

I'm using , based, in class, I have a fork/hack that makes it have the py5 function & variable names: https://abav.lugaralgum.com/pyp5js/py5mode/

And https://proceso.cc might be the next great option...

villares, (edited )
@villares@ciberlandia.pt avatar

Thank you @orsinium! This is great!

pybonacci, to random
@pybonacci@mastodon.social avatar

I've reviewed the #pyscript + #pyodide examples and the simple 'hello world' downloads 15Mb and takes seconds.

Anyone has any news about pyscript + #micropython? I read the tests/blog posts several months ago but nothing new since then.

Don't get me wrong, Pyodide and the #scipy stack in the browser is amazing but something lighter (micropython) to create simple webs not depending on pyodide would also be awesome.

Pyodide is working hard to reduce the size but still.

What do you think?

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • thenastyranch
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • ngwrru68w68
  • provamag3
  • magazineikmin
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • anitta
  • Leos
  • tester
  • JUstTest
  • All magazines