r/Frontend • • 5d ago

Importing Python into React components - wtf?

I didn’t realise this was possible. Christ webassembly allows for some useful things.

20 Upvotes

15 comments sorted by

View all comments

Show parent comment

2

u/sonthonaxrk 5d ago

It’s pure JavaScript importing Python in the browser. No AST manipulation just some decorators.

1

u/TheRNGuy 5d ago

Any ideas for practical uses? 

1

u/sonthonaxrk 5d ago

Writing a python notebook and turning it into a webpage that isn’t jank.