r/Frontend • • 7d ago

Importing Python into React components - wtf?

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

22 Upvotes

15 comments sorted by

View all comments

2

u/TheRNGuy 6d ago

Is it using AST? 

It also needs code coloring.

2

u/sonthonaxrk 6d ago

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

1

u/TheRNGuy 6d ago

Any ideas for practical uses? 

1

u/sonthonaxrk 6d ago

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