Тёмный

Maarten Breddels IPywidgets: From an experiment in the Notebook to Production ready data app 

JupyterCon
Подписаться 2,7 тыс.
Просмотров 745
50% 1

IPywidgets is the go-to library for building interactive interfaces in the Jupyter notebook. What may start as an experiment with a few sliders and buttons, may evolve into a company-wide data app that needs to be production-ready quality.
The biggest issue we see for applications is managing the complexity of the code.
In the JavaScript world, React is considered a library that helps conquer that problem. The main reasons for this are its declarative nature and its ability to define encapsulated components that can be composed to form larger components of applications.
Reacton is a pure Python implementation of the React library, that enables the same style of programming as React, but in Python using the ipywidgets libraries.
On top of that, Reacton adds type information, allowing type checkers such as mypy to find bugs before they occur in production.
The next problem is how to run your ipywidget application outside the Jupyter notebook or Jupyter Lab environment.
Voilà is the goto library for running notebooks as standalone web applications and has support for ipywidgets. However, each request requires a new kernel, which requires starting a new process. This requires a lot of resources, and different processes also make it hard to share memory between different users/requests.
Solara allows you to write ipywidget-based applications, using a server that is running “virtual kernels” in a single process, saving resources, and leading to faster page loads.
On top of that, Solara will come with many Reacton-based components, and support for multiple pages, making it the perfect framework for writing production-ready data apps.

Опубликовано:

 

18 июл 2023

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 4   
@oflasch
@oflasch 3 месяца назад
Fantastic 😊
@yosolonopuedo
@yosolonopuedo 11 месяцев назад
Amazing!
@Ljupcho
@Ljupcho 11 месяцев назад
Looks great!
@jackyarcher9749
@jackyarcher9749 11 месяцев назад
'promo sm' 🙈
Далее
How to Start a Speech
8:47
Просмотров 19 млн
Scientific writing in JupyterLab with MyST Markdown
50:36