A serverless notebook experimentation with pyscript, tailwind, and markedjs #1832
nicolasgallandpro
started this conversation in
Show and tell
Replies: 1 comment 2 replies
-
Nice :) |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone, and thanks to the team for their excellent work on PyScript.
As a dedicated Streamlit user, I wanted to experiment with creating a notebook using PyScript. The idea was to create a serverless notebook with interactivity and a developer-friendly experience. I used marked.js to convert the markdown into HTML and Tailwind CSS (along with its Typography and Forms plugins) for the rendering.
The experience was surprisingly straightforward: you write your text in Markdown, your Python code, you save it, and it works. It offers interactivity without the need for compilation (unlike Quarto) or a server (unlike Streamlit). The code is simple. I started using this to deliver one-time analysys to my clients, and it's nice.
You can see the result here : https://nicolasgallandpro.github.io/open_data_exploration/pyscript_demo/
I also wrote an article to explain my approach, the pros and the cons : https://medium.com/@nicogalland/a-simple-serverless-static-interactive-python-notebook-with-pyscrypt-marked-js-and-tailwind-css-ef40419345d1
The code :
The only real drawback I encountered is the inability to read remote Parquet files (soon ?)
Beta Was this translation helpful? Give feedback.
All reactions