Settings

Theme

Show HN: Write React in the Jupyter notebook without JavaScript build tools

github.com

3 points by maartenbreddels 3 years ago · 0 comments · 1 min read

Reader

The friction of getting a small snippet of React code into the Jupyter notebook really high. Especially when you want to have communication between the browser and the Python process.

Using sucrase to do transpiling of jsx/tsx in the browser, and using ES modules features (+shims) allows you to take for instance any Material UI example (like https://mui.com/material-ui/react-rating/) and have it work without having to install NodeJS and set up a while build toolchain.

Feels like old-school JavaScript dev again :)

pip install ipyreact and it just works

No comments yet.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection