Better HN
topnewbestaskshowjobs
Log inSign up

maartenbreddels

334 karma · joined Feb 16, 2017 (9y ago) · 76 submissions

Submissions

comment 1y ago · link · parent

I guess someone needs to build a Solara app running in the Jupyter Notebook to interface with Jupiter (running on Solana).

2.

Build your Jupyter dashboard using Solara(blog.jupyter.org ↗)

4 points · by maartenbreddels · 1y ago · 2 comments

comment 2y ago · link · parent

Yes, with pycafe that is possible: https://py.cafe/snippet/asgi/v1#c=H4sIABN3wGYAA41UTW_bMAz9K4...

comment 2y ago · link · parent

Also check out https://py.cafe/ (I work on this project)

It supports streamlit, dash, virzo and solara. Frameworks like shiny, gradio and panel are planned (maybe even fasthtml).

It's also really nice to integrate this into your documentation: https://mkdocs.py.cafe/

comment 2y ago · link · parent

We plan to support fastHTML at https://py.cafe/

This also uses pyodide, but supports more frameworks out of the box.

comment 3y ago · link · parent

On https://solara.dev/docs/tutorial/streamlit we highlight the main differences:

* Solara will not continuously re-execute your script as Streamlit does.

* Solara will re-execute components instead, only what needs to. * State in Solara is separate from the UI components, unlike streamlit, where they are strongly linked.

* State can be on the application level (global) for simplicity or on the component level (local) for creating reusable components.

* Solara should not block the render loop. Long-running functions should be executed in a thread using use_thread.

comment 3y ago · link · parent

Yes, the API is a bit more complex than before but it does give more options!

comment 3y ago · link · parent

Thank you

comment 3y ago · link · parent

It’s demoed in https://www.youtube.com/live/U9mJuUkhUzk?si=Ko3FZ0Axx7jcZaQ7 @ 35:11 Hope that helps :)

comment 3y ago · link · parent

It can be used for general purposes, but we focus on the data science landscape. However, our main website is built using solara, and we know a few startups using solara for their main product (public-facing, not internal).

comment 3y ago · link · parent

We (the authors of the Solara web app framework) were inspired by the OpenAI keynote Wanderlust app they demoed and rebuilt it in Python using Solara. It would be good to showcase our framework's power and inspire others to build UI's with AI/LLM elements in it.

GitHub: https://github.com/widgetti/wanderlust App: https://huggingface.co/spaces/solara-dev/wanderlust X: https://twitter.com/maartenbreddels/status/17223244907077020... Solara: https://github.com/widgetti/solara/

12.

We wrote the OpenAI Wanderlust app in pure Python using Solara(github.com ↗)

92 points · by maartenbreddels · 3y ago · 41 comments

comment 3y ago · link · parent

Thanks for the shout out.

The follow up of that is Solara: "NextJS, but in Python" :)

https://github.com/widgetti/solara/

comment 3y ago · link · parent

Not sure where you found that link, but https://solara.dev/api should work fine!

Let’s take that question to GitHub or discord not to go too much off topic here ok? Thanks!

comment 3y ago · link · parent

In Solara you can dynamically put together the UI like in react, in pynecone you need to use their primitives to make lists and conditional rendering. Also, state management is not tied to solara, but could use dataclasses or pydantic, wrapped in a reactive variable.

I think what sets Solara apart from the rest is that we use a 10 year proven paradigm, React, but on the Python side, although with a more Pythonic API. For instance making reusable components in Python is a real benefit. Pynecone uses ReactJS in the front end, but on the Python side it’s their own API.

I do like pynecone, their API is pretty. I do wonder with many of these frameworks. Does the paradigm works for more complex apps, or does it end in complexity hell once you go past the hello world examples. At least React has proven itself.

comment 3y ago · link · parent

Co-creator of Voila here. Voila is rather un-opinionated about what you can run in it. While it offers excellent support for ipywidgets, it's certainly not confined to that. One downside of Voila is that it can be resource-intensive, as it creates a new kernel/process for each page view or browser tab.

Mercury, in my view, seems really interesting for quick demos and reports. It's somewhat akin to Streamlit, making it ideal for notebook authors.

On the other end of the spectrum (and pardon my shameless plug here), there's Solara (https://github.com/widgetti/solara/). Solara is a fully-fledged web framework for Python, specifically designed to handle app sizes that surpass what Streamlit and Dash can manage. It's worth noting that Solara can render ipywidgets, using a pure Python React-like framework. This can be particularly useful after the exploration phase, when you're looking to transition a project from the notebook into production.

comment 3y ago · link · parent

Correct. We were already doing that with pure/classic ipywidgets based apps.

We helped many clients get their prototypes into production and identifier some friction doing that.

We now have a way to make more complex apps using the same stack, and get better app startup performance.

comment 3y ago · link · parent

We're excited to introduce Solara: A pure Python web framework built for large, complex apps.

While there are many Python web frameworks out there, most are designed for small data apps or use paradigms unproven for larger scale. Code organization, reusability, and state tend to suffer as apps grow in complexity, resulting in either spaghetti code or offloading to a React application.

Solara addresses this gap. Using a React-like API, we don't need to worry about scalability. React has already proven its ability to support the world's largest web apps.

Solara uses a pure Python implementation of React (Reacton), creating ipywidget-based applications. These apps work both inside the Jupyter Notebook and as standalone web apps with frameworks like FastAPI. This paradigm enables component-based code and incredibly simple state management.

By building on top of ipywidgets, we automatically leverage an existing ecosystem of widgets and run on many platforms, including JupyterLab, Jupyter Notebook, Voilà, Google Colab, DataBricks, JetBrains Datalore, and more.

We look forward to your thoughts and feedback!

19.

Solara: A Pure Python, React-Style Framework for Scaling Your Web Apps(github.com ↗)

7 points · by maartenbreddels · 3y ago · 3 comments

20.

Show HN: Write React in the Jupyter notebook without JavaScript build tools(github.com ↗)

3 points · by maartenbreddels · 3y ago · discuss

21.

Show HN: Reacton – A pure Python port of React for ipywidgets(github.com ↗)

5 points · by maartenbreddels · 3y ago · discuss

comment 5y ago · link · parent

My guess is that should be possible, feel free to hop onto https://github.com/vaexio/vaex/discussions !

comment 5y ago · link · parent

Thanks, glad you find Vaex useful.

Indeed, for small data there is not much to gain, at least this is not the focus of this article. Although even with small amounts of the, the automatic pipelines are useful https://vaex.io/blog/ml-impossible-train-a-1-billion-sample-...

comment 5y ago · link · parent

AFAIK Modin tries to be the API compatible with Pandas, but then faster/distributed. Vaex tries to be a DataFrame library that is as fast as possible on a single machine to keep things simple and fast (although distributed is on the horizon, we don't need it currently). We're not afraid to break compatibility with pandas, because we care about performance. Both libraries try to hide the laziness from the user.

comment 5y ago · link · parent

Yes, Arrow 3.0 has much more string kernels https://arrow.apache.org/docs/cpp/compute.html

26.

A Hybrid Apache Arrow/Numpy DataFrame with Vaex Version 4.0(vaex.io ↗)

58 points · by maartenbreddels · 5y ago · 16 comments

27.

Tracing and visualizing the Python GIL with perf and VizTracer(maartenbreddels.com ↗)

61 points · by maartenbreddels · 5y ago · 1 comment

28.

Show HN: Interactive and scalable dashboards with Vaex and Dash(medium.com ↗)

5 points · by maartenbreddels · 6y ago · discuss

comment 6y ago · link · parent

For a visual output, voila can give you a dashboard look: https://github.com/voila-dashboards/voila/ see e.g. https://github.com/maartenbreddels/voila-demo for a mobile-ready responsive rendering of a notebook.
123