solara 1.29.1__py2.py3-none-any.whl → 1.30.1__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- solara/__init__.py +5 -5
- solara/__main__.py +6 -2
- solara/autorouting.py +88 -56
- solara/cache.py +2 -2
- solara/checks.html +1 -1
- solara/components/__init__.py +1 -1
- solara/components/applayout.py +5 -5
- solara/components/button.py +4 -4
- solara/components/card.py +1 -2
- solara/components/component_vue.py +9 -8
- solara/components/cross_filter.py +6 -7
- solara/components/datatable.py +2 -3
- solara/components/figure_altair.py +1 -1
- solara/components/file_download.py +2 -2
- solara/components/file_drop.py +76 -33
- solara/components/file_drop.vue +24 -10
- solara/components/head.py +1 -2
- solara/components/head_tag.py +2 -3
- solara/components/image.py +1 -1
- solara/components/link.py +3 -4
- solara/components/meta.py +1 -1
- solara/components/misc.py +5 -9
- solara/datatypes.py +2 -2
- solara/hooks/use_reactive.py +2 -2
- solara/lab/components/confirmation_dialog.py +1 -1
- solara/lab/components/tabs.py +6 -6
- solara/reactive.py +1 -1
- solara/routing.py +9 -8
- solara/scope/__init__.py +3 -2
- solara/server/app.py +44 -1
- solara/server/assets/style.css +6 -0
- solara/server/esm.py +28 -4
- solara/server/kernel_context.py +78 -7
- solara/server/patch.py +3 -0
- solara/server/reload.py +2 -2
- solara/server/server.py +3 -3
- solara/server/settings.py +1 -0
- solara/server/starlette.py +66 -33
- solara/server/static/solara_bootstrap.py +1 -1
- solara/server/templates/solara.html.j2 +62 -42
- solara/tasks.py +1 -6
- solara/util.py +23 -1
- solara/website/assets/custom.css +56 -0
- solara/website/components/__init__.py +1 -0
- solara/website/components/algolia_api.vue +157 -0
- solara/website/components/docs.py +118 -0
- solara/website/components/header.py +20 -10
- solara/website/components/hero.py +1 -1
- solara/website/components/markdown.py +30 -0
- solara/website/pages/__init__.py +234 -20
- solara/website/pages/apps/jupyter-dashboard-1.py +1 -1
- solara/website/pages/apps/multipage/__init__.py +1 -1
- solara/website/pages/apps/multipage/page2.py +1 -1
- solara/website/pages/apps/scatter.py +21 -7
- solara/website/pages/changelog/__init__.py +8 -0
- solara/website/pages/{docs/content/95-changelog.md → changelog/changelog.md} +43 -2
- solara/website/pages/contact/__init__.py +8 -0
- solara/website/pages/documentation/__init__.py +184 -0
- solara/website/pages/{docs → documentation/advanced}/__init__.py +2 -2
- solara/website/pages/documentation/advanced/content/00-overview.md +1 -0
- solara/website/pages/{docs → documentation/advanced}/content/10-howto/00-overview.md +5 -0
- solara/website/pages/{docs/content/10-howto/20-multipage.md → documentation/advanced/content/10-howto/10-multipage.md} +9 -5
- solara/website/pages/{docs/content/10-howto/30-layout.md → documentation/advanced/content/10-howto/20-layout.md} +26 -21
- solara/website/pages/{docs/content/10-howto/50-testing.md → documentation/advanced/content/10-howto/30-testing.md} +5 -0
- solara/website/pages/{docs/content/10-howto/51-debugging.md → documentation/advanced/content/10-howto/31-debugging.md} +4 -1
- solara/website/pages/{docs/content/10-howto/80-embed.md → documentation/advanced/content/10-howto/40-embed.md} +7 -1
- solara/website/pages/{docs/content/10-howto/ipywidget_libraries.md → documentation/advanced/content/10-howto/50-ipywidget_libraries.md} +4 -0
- solara/website/pages/documentation/advanced/content/20-understanding/00-introduction.md +10 -0
- solara/website/pages/{docs → documentation/advanced}/content/20-understanding/05-ipywidgets.md +5 -0
- solara/website/pages/{docs → documentation/advanced}/content/20-understanding/06-ipyvuetify.md +5 -1
- solara/website/pages/{docs → documentation/advanced}/content/20-understanding/10-reacton.md +4 -0
- solara/website/pages/{docs → documentation/advanced}/content/20-understanding/12-reacton-basics.md +5 -1
- solara/website/pages/{docs → documentation/advanced}/content/20-understanding/15-anatomy.md +6 -2
- solara/website/pages/documentation/advanced/content/20-understanding/17-rules-of-hooks.md +7 -0
- solara/website/pages/{docs → documentation/advanced}/content/20-understanding/18-containers.md +9 -3
- solara/website/pages/{docs → documentation/advanced}/content/20-understanding/20-solara.md +5 -0
- solara/website/pages/{docs → documentation/advanced}/content/20-understanding/40-routing.md +13 -9
- solara/website/pages/{docs → documentation/advanced}/content/20-understanding/50-solara-server.md +6 -1
- solara/website/pages/{docs → documentation/advanced}/content/20-understanding/60-voila.md +5 -0
- solara/website/pages/{docs/content/50-enterprise → documentation/advanced/content/30-enterprise}/10-oauth.md +7 -3
- solara/website/pages/{docs/content/10-howto → documentation/advanced/content/40-development}/01-contribute.md +9 -5
- solara/website/pages/{docs/content/90-development → documentation/advanced/content/40-development}/10-setup.md +6 -2
- solara/website/pages/documentation/api/__init__.py +19 -0
- solara/website/pages/documentation/api/cross_filter/__init__.py +9 -0
- solara/website/pages/documentation/api/hooks/__init__.py +9 -0
- solara/website/pages/{api → documentation/api/hooks}/use_effect.md +3 -3
- solara/website/pages/{api → documentation/api/hooks}/use_effect.py +2 -1
- solara/website/pages/{api → documentation/api/hooks}/use_memo.md +2 -2
- solara/website/pages/{api → documentation/api/hooks}/use_memo.py +2 -1
- solara/website/pages/{api → documentation/api/hooks}/use_reactive.py +1 -2
- solara/website/pages/{api → documentation/api/hooks}/use_state.py +1 -2
- solara/website/pages/documentation/api/routing/__init__.py +9 -0
- solara/website/pages/{api → documentation/api/routing}/generate_routes.py +1 -2
- solara/website/pages/{api → documentation/api/routing}/generate_routes_directory.py +1 -2
- solara/website/pages/{api → documentation/api/routing}/use_route.py +2 -2
- solara/website/pages/{api → documentation/api/routing}/use_router.py +1 -2
- solara/website/pages/documentation/api/utilities/__init__.py +9 -0
- solara/website/pages/{api → documentation/api/utilities}/component_vue.py +1 -2
- solara/website/pages/{api → documentation/api/utilities}/computed.py +2 -2
- solara/website/pages/{api → documentation/api/utilities}/display.py +1 -2
- solara/website/pages/{api → documentation/api/utilities}/get_kernel_id.py +2 -2
- solara/website/pages/{api → documentation/api/utilities}/get_session_id.py +2 -2
- solara/website/pages/{api → documentation/api/utilities}/on_kernel_start.py +9 -3
- solara/website/pages/{api → documentation/api/utilities}/reactive.py +1 -2
- solara/website/pages/{api → documentation/api/utilities}/widget.py +2 -2
- solara/website/pages/documentation/components/__init__.py +12 -0
- solara/website/pages/documentation/components/advanced/__init__.py +9 -0
- solara/website/pages/documentation/components/data/__init__.py +9 -0
- solara/website/pages/documentation/components/enterprise/__init__.py +9 -0
- solara/website/pages/{api → documentation/components/enterprise}/avatar.py +1 -2
- solara/website/pages/{api → documentation/components/enterprise}/avatar_menu.py +1 -2
- solara/website/pages/documentation/components/input/__init__.py +9 -0
- solara/website/pages/{api → documentation/components/input}/checkbox.py +1 -2
- solara/website/pages/documentation/components/input/file_drop.py +75 -0
- solara/website/pages/{api → documentation/components/input}/input.py +1 -2
- solara/website/pages/{api → documentation/components/input}/select.py +1 -2
- solara/website/pages/{api → documentation/components/input}/slider.py +1 -2
- solara/website/pages/{api → documentation/components/input}/switch.py +1 -2
- solara/website/pages/{api → documentation/components/input}/togglebuttons.py +1 -2
- solara/website/pages/documentation/components/lab/__init__.py +9 -0
- solara/website/pages/{api → documentation/components/lab}/chat.py +2 -3
- solara/website/pages/{api → documentation/components/lab}/cookies_headers.py +1 -1
- solara/website/pages/{api → documentation/components/lab}/input_date.py +1 -2
- solara/website/pages/{api → documentation/components/lab}/menu.py +1 -2
- solara/website/pages/{api → documentation/components/lab}/task.py +1 -2
- solara/website/pages/{api → documentation/components/lab}/theming.py +1 -2
- solara/website/pages/{api → documentation/components/lab}/use_task.py +1 -2
- solara/website/pages/documentation/components/layout/__init__.py +9 -0
- solara/website/pages/{api → documentation/components/layout}/app_bar.py +1 -2
- solara/website/pages/{api → documentation/components/layout}/app_bar_title.py +1 -2
- solara/website/pages/{api → documentation/components/layout}/card.py +1 -2
- solara/website/pages/{api → documentation/components/layout}/card_actions.py +1 -2
- solara/website/pages/{api → documentation/components/layout}/griddraggable.py +1 -1
- solara/website/pages/{api → documentation/components/layout}/gridfixed.py +1 -1
- solara/website/pages/{api → documentation/components/layout}/hbox.py +1 -1
- solara/website/pages/{api → documentation/components/layout}/vbox.py +1 -1
- solara/website/pages/documentation/components/output/__init__.py +9 -0
- solara/website/pages/{api → documentation/components/output}/file_download.py +1 -2
- solara/website/pages/{api → documentation/components/output}/image.py +1 -2
- solara/website/pages/{api → documentation/components/output}/tooltip.py +1 -2
- solara/website/pages/documentation/components/page/__init__.py +9 -0
- solara/website/pages/documentation/components/status/__init__.py +9 -0
- solara/website/pages/{api → documentation/components/status}/error.py +3 -3
- solara/website/pages/{api → documentation/components/status}/info.py +3 -3
- solara/website/pages/{api → documentation/components/status}/progress.py +1 -2
- solara/website/pages/{api → documentation/components/status}/spinner.py +1 -2
- solara/website/pages/{api → documentation/components/status}/success.py +3 -3
- solara/website/pages/{api → documentation/components/status}/warning.py +3 -3
- solara/website/pages/documentation/components/viz/__init__.py +9 -0
- solara/website/pages/{api → documentation/components/viz}/plotly.py +1 -0
- solara/website/pages/{examples → documentation/examples}/__init__.py +3 -43
- solara/website/pages/{examples → documentation/examples}/general/custom_storage.py +1 -1
- solara/website/pages/{examples → documentation/examples}/general/deploy_model.py +3 -3
- solara/website/pages/{examples → documentation/examples}/general/login_oauth.py +1 -1
- solara/website/pages/{examples → documentation/examples}/general/vue_component.py +1 -2
- solara/website/pages/{examples → documentation/examples}/libraries/altair.py +2 -3
- solara/website/pages/{examples → documentation/examples}/libraries/ipyleaflet_advanced.py +1 -1
- solara/website/pages/{examples → documentation/examples}/utilities/countdown_timer.py +1 -1
- solara/website/pages/{examples → documentation/examples}/visualization/plotly.py +1 -2
- solara/website/pages/documentation/faq/__init__.py +12 -0
- solara/website/pages/{docs → documentation/faq}/content/99-faq.md +4 -1
- solara/website/pages/documentation/getting_started/__init__.py +9 -0
- solara/website/pages/{docs/content/03-quickstart.md → documentation/getting_started/content/00-quickstart.md} +7 -2
- solara/website/pages/{docs/content/00-introduction.md → documentation/getting_started/content/01-introduction.md} +20 -16
- solara/website/pages/{docs → documentation/getting_started}/content/02-installing.md +5 -1
- solara/website/pages/documentation/getting_started/content/04-tutorials/00-overview.md +14 -0
- solara/website/pages/{docs/content/04-tutorial → documentation/getting_started/content/04-tutorials}/20-web-app.md +9 -4
- solara/website/pages/{docs/content/04-tutorial → documentation/getting_started/content/04-tutorials}/30-ipywidgets.md +13 -9
- solara/website/pages/{docs/content/04-tutorial → documentation/getting_started/content/04-tutorials}/40-streamlit.md +17 -12
- solara/website/pages/{docs/content/04-tutorial → documentation/getting_started/content/04-tutorials}/50-dash.md +7 -3
- solara/website/pages/{docs/content/04-tutorial → documentation/getting_started/content/04-tutorials}/_data_science.ipynb +5 -5
- solara/website/pages/documentation/getting_started/content/05-fundamentals/00-overview.md +11 -0
- solara/website/pages/{docs/content/07-fundamentals → documentation/getting_started/content/05-fundamentals}/10-components.md +7 -2
- solara/website/pages/{docs/content/07-fundamentals → documentation/getting_started/content/05-fundamentals}/50-state-management.md +8 -3
- solara/website/pages/documentation/getting_started/content/06-reference/00-overview.md +3 -0
- solara/website/pages/{docs/content/15-reference → documentation/getting_started/content/06-reference}/40-static_files.md +4 -0
- solara/website/pages/{docs/content/15-reference → documentation/getting_started/content/06-reference}/41-asset-files.md +5 -1
- solara/website/pages/{docs/content/15-reference → documentation/getting_started/content/06-reference}/60-static-site-generation.md +5 -1
- solara/website/pages/{docs/content/15-reference → documentation/getting_started/content/06-reference}/70-search.md +5 -1
- solara/website/pages/{docs/content/15-reference → documentation/getting_started/content/06-reference}/80-reloading.md +7 -3
- solara/website/pages/{docs/content/15-reference → documentation/getting_started/content/06-reference}/90-notebook-support.md +4 -1
- solara/website/pages/{docs/content/15-reference → documentation/getting_started/content/06-reference}/95-caching.md +6 -1
- solara/website/pages/documentation/getting_started/content/07-deploying/00-overview.md +7 -0
- solara/website/pages/{docs/content/30-deploying → documentation/getting_started/content/07-deploying}/10-self-hosted.md +7 -3
- solara/website/pages/{docs/content/30-deploying → documentation/getting_started/content/07-deploying}/20-cloud-hosted.md +5 -1
- solara/website/pages/documentation/getting_started/content/80-what-is-lab.md +7 -0
- solara/website/pages/{docs → documentation/getting_started}/content/90-troubleshoot.md +4 -0
- solara/website/pages/showcase/__init__.py +1 -1
- solara/website/pages/showcase/domino_code_assist.py +1 -1
- solara/website/pages/showcase/solara_dev.py +1 -1
- solara/website/public/social/discord.svg +1 -0
- solara/website/public/social/github.svg +1 -0
- solara/website/public/social/twitter.svg +3 -0
- {solara-1.29.1.dist-info → solara-1.30.1.dist-info}/METADATA +8 -7
- solara-1.30.1.dist-info/RECORD +437 -0
- {solara-1.29.1.dist-info → solara-1.30.1.dist-info}/WHEEL +1 -1
- solara/website/pages/api/__init__.py +0 -292
- solara/website/pages/api/default_layout.py +0 -16
- solara/website/pages/api/file_drop.py +0 -36
- solara/website/pages/docs/content/04-tutorial/00-overview.md +0 -9
- solara/website/pages/docs/content/07-fundamentals/00-overview.md +0 -7
- solara/website/pages/docs/content/15-reference/00-overview.md +0 -6
- solara/website/pages/docs/content/20-understanding/00-introduction.md +0 -4
- solara/website/pages/docs/content/20-understanding/17-rules-of-hooks.md +0 -3
- solara/website/pages/docs/content/30-deploying/00-overview.md +0 -3
- solara/website/pages/docs/content/lab/00-what-is-lab.md +0 -3
- solara-1.29.1.dist-info/RECORD +0 -411
- /solara/website/pages/{docs/content/99-contact.md → contact/contact.md} +0 -0
- /solara/website/pages/{docs/content/50-enterprise → documentation/advanced/content/30-enterprise}/00-overview.md +0 -0
- /solara/website/pages/{docs/content/__init__.py → documentation/advanced/content/40-development/00-overview.md} +0 -0
- /solara/website/pages/{api → documentation/api/cross_filter}/cross_filter_dataframe.py +0 -0
- /solara/website/pages/{api → documentation/api/cross_filter}/cross_filter_report.py +0 -0
- /solara/website/pages/{api → documentation/api/cross_filter}/cross_filter_select.py +0 -0
- /solara/website/pages/{api → documentation/api/cross_filter}/cross_filter_slider.py +0 -0
- /solara/website/pages/{api → documentation/api/hooks}/use_cross_filter.py +0 -0
- /solara/website/pages/{api → documentation/api/hooks}/use_dark_effective.py +0 -0
- /solara/website/pages/{api → documentation/api/hooks}/use_exception.py +0 -0
- /solara/website/pages/{api → documentation/api/hooks}/use_previous.py +0 -0
- /solara/website/pages/{api → documentation/api/hooks}/use_state_or_update.py +0 -0
- /solara/website/pages/{api → documentation/api/hooks}/use_thread.md +0 -0
- /solara/website/pages/{api → documentation/api/hooks}/use_thread.py +0 -0
- /solara/website/pages/{api → documentation/api/hooks}/use_trait_observe.py +0 -0
- /solara/website/pages/{api → documentation/api/routing}/resolve_path.py +0 -0
- /solara/website/pages/{api → documentation/api/routing}/route.py +0 -0
- /solara/website/pages/{api → documentation/api/utilities}/memoize.py +0 -0
- /solara/website/pages/{api → documentation/components/advanced}/link.py +0 -0
- /solara/website/pages/{api → documentation/components/advanced}/meta.py +0 -0
- /solara/website/pages/{api → documentation/components/advanced}/style.py +0 -0
- /solara/website/pages/{api → documentation/components}/common.py +0 -0
- /solara/website/pages/{api → documentation/components/data}/dataframe.py +0 -0
- /solara/website/pages/{api → documentation/components/data}/pivot_table.py +0 -0
- /solara/website/pages/{api → documentation/components/input}/button.py +0 -0
- /solara/website/pages/{api → documentation/components/input}/file_browser.py +0 -0
- /solara/website/pages/{api → documentation/components/lab}/confirmation_dialog.py +0 -0
- /solara/website/pages/{api → documentation/components/lab}/tab.py +0 -0
- /solara/website/pages/{api → documentation/components/lab}/tabs.py +0 -0
- /solara/website/pages/{api → documentation/components/layout}/app_layout.py +0 -0
- /solara/website/pages/{api → documentation/components/layout}/column.py +0 -0
- /solara/website/pages/{api → documentation/components/layout}/columns.py +0 -0
- /solara/website/pages/{api → documentation/components/layout}/columns_responsive.py +0 -0
- /solara/website/pages/{api → documentation/components/layout}/row.py +0 -0
- /solara/website/pages/{api → documentation/components/layout}/sidebar.py +0 -0
- /solara/website/pages/{api → documentation/components/output}/html.py +0 -0
- /solara/website/pages/{api → documentation/components/output}/markdown.py +0 -0
- /solara/website/pages/{api → documentation/components/output}/markdown_editor.py +0 -0
- /solara/website/pages/{api → documentation/components/output}/sql_code.py +0 -0
- /solara/website/pages/{api → documentation/components/page}/head.py +0 -0
- /solara/website/pages/{api → documentation/components/page}/title.py +0 -0
- /solara/website/pages/{api → documentation/components/viz}/altair.py +0 -0
- /solara/website/pages/{api → documentation/components/viz}/echarts.py +0 -0
- /solara/website/pages/{api → documentation/components/viz}/matplotlib.py +0 -0
- /solara/website/pages/{api → documentation/components/viz}/plotly_express.py +0 -0
- /solara/website/pages/{examples → documentation/examples}/ai/__init__.py +0 -0
- /solara/website/pages/{examples → documentation/examples}/ai/chatbot.py +0 -0
- /solara/website/pages/{examples → documentation/examples}/ai/tokenizer.py +0 -0
- /solara/website/pages/{examples → documentation/examples}/basics/__init__.py +0 -0
- /solara/website/pages/{examples → documentation/examples}/basics/sine.py +0 -0
- /solara/website/pages/{examples → documentation/examples}/fullscreen/__init__.py +0 -0
- /solara/website/pages/{examples → documentation/examples}/fullscreen/authorization.py +0 -0
- /solara/website/pages/{examples → documentation/examples}/fullscreen/layout_demo.py +0 -0
- /solara/website/pages/{examples → documentation/examples}/fullscreen/multipage.py +0 -0
- /solara/website/pages/{examples → documentation/examples}/fullscreen/scatter.py +0 -0
- /solara/website/pages/{examples → documentation/examples}/fullscreen/scrolling.py +0 -0
- /solara/website/pages/{examples → documentation/examples}/fullscreen/tutorial_streamlit.py +0 -0
- /solara/website/pages/{examples → documentation/examples}/general/__init__.py +0 -0
- /solara/website/pages/{examples → documentation/examples}/general/live_update.py +0 -0
- /solara/website/pages/{examples → documentation/examples}/general/mycard.vue +0 -0
- /solara/website/pages/{examples → documentation/examples}/general/pokemon_search.py +0 -0
- /solara/website/pages/{examples → documentation/examples}/ipycanvas.py +0 -0
- /solara/website/pages/{examples → documentation/examples}/libraries/__init__.py +0 -0
- /solara/website/pages/{examples → documentation/examples}/libraries/bqplot.py +0 -0
- /solara/website/pages/{examples → documentation/examples}/libraries/ipyleaflet.py +0 -0
- /solara/website/pages/{examples → documentation/examples}/utilities/__init__.py +0 -0
- /solara/website/pages/{examples → documentation/examples}/utilities/calculator.py +0 -0
- /solara/website/pages/{examples → documentation/examples}/utilities/todo.py +0 -0
- /solara/website/pages/{examples → documentation/examples}/visualization/__init__.py +0 -0
- /solara/website/pages/{examples → documentation/examples}/visualization/annotator.py +0 -0
- /solara/website/pages/{examples → documentation/examples}/visualization/linked_views.py +0 -0
- /solara/website/pages/{docs/content/04-tutorial → documentation/getting_started/content/04-tutorials}/10_data_science.py +0 -0
- /solara/website/pages/{docs/content/04-tutorial → documentation/getting_started/content/04-tutorials}/60-jupyter-dashboard-part1.py +0 -0
- /solara/website/pages/{docs/content/04-tutorial → documentation/getting_started/content/04-tutorials}/SF_crime_sample.csv.gz +0 -0
- /solara/website/pages/{docs/content/04-tutorial → documentation/getting_started/content/04-tutorials}/_jupyter_dashboard_1.ipynb +0 -0
- {solara-1.29.1.data → solara-1.30.1.data}/data/etc/jupyter/jupyter_notebook_config.d/solara.json +0 -0
- {solara-1.29.1.data → solara-1.30.1.data}/data/etc/jupyter/jupyter_server_config.d/solara.json +0 -0
- {solara-1.29.1.dist-info → solara-1.30.1.dist-info}/entry_points.txt +0 -0
- {solara-1.29.1.dist-info → solara-1.30.1.dist-info}/licenses/LICENSE +0 -0
solara/website/pages/__init__.py
CHANGED
|
@@ -1,15 +1,221 @@
|
|
|
1
1
|
import contextlib
|
|
2
2
|
|
|
3
3
|
import solara
|
|
4
|
+
from solara import autorouting
|
|
4
5
|
from solara.alias import rv
|
|
5
6
|
from solara.components.title import Title
|
|
7
|
+
from solara.server import server
|
|
6
8
|
|
|
7
9
|
from ..components import Header, Hero
|
|
8
10
|
from ..components.mailchimp import MailChimp
|
|
9
11
|
|
|
10
12
|
title = "Home"
|
|
11
13
|
|
|
12
|
-
route_order = ["/", "showcase", "
|
|
14
|
+
route_order = ["/", "showcase", "documentation", "apps", "contact", "changelog"]
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
_redirects = {
|
|
18
|
+
"/docs": "/documentation/getting_started/introduction",
|
|
19
|
+
"/docs/installing": "/documentation/getting_started/installing",
|
|
20
|
+
"/docs/quickstart": "/documentation/getting_started",
|
|
21
|
+
"/docs/tutorial": "/documentation/getting_started/tutorials",
|
|
22
|
+
"/docs/tutorial/data-science": "/documentation/getting_started/tutorials/data-science",
|
|
23
|
+
"/docs/tutorial/web-app": "/documentation/getting_started/tutorials/web-app",
|
|
24
|
+
"/docs/tutorial/ipywidgets": "/documentation/getting_started/tutorials/ipywidgets",
|
|
25
|
+
"/docs/tutorial/streamlit": "/documentation/getting_started/tutorials/streamlit",
|
|
26
|
+
"/docs/tutorial/dash": "/documentation/getting_started/tutorials/dash",
|
|
27
|
+
"/docs/tutorial/jupyter-dashboard-part1": "/documentation/getting_started/tutorials/jupyter-dashboard-part1",
|
|
28
|
+
"/docs/fundamentals": "/documentation/getting_started/fundamentals",
|
|
29
|
+
"/docs/fundamentals/components": "/documentation/getting_started/fundamentals/components",
|
|
30
|
+
"/docs/fundamentals/state-management": "/documentation/getting_started/fundamentals/state-management",
|
|
31
|
+
"/docs/howto": "/documentation/advanced/howto",
|
|
32
|
+
"/docs/howto/contribute": "/documentation/advanced/development/contribute",
|
|
33
|
+
"/docs/howto/multipage": "/documentation/advanced/howto/multipage",
|
|
34
|
+
"/docs/howto/layout": "/documentation/advanced/howto/layout",
|
|
35
|
+
"/docs/howto/testing": "/documentation/advanced/howto/testing",
|
|
36
|
+
"/docs/howto/debugging": "/documentation/advanced/howto/debugging",
|
|
37
|
+
"/docs/howto/embed": "/documentation/advanced/howto/embed",
|
|
38
|
+
"/docs/howto/ipywidget-libraries": "/documentation/advanced/howto/ipywidget-libraries",
|
|
39
|
+
"/docs/reference": "/documentation/getting_started/reference",
|
|
40
|
+
"/docs/reference/static-files": "/documentation/getting_started/reference/static-files",
|
|
41
|
+
"/docs/reference/asset-files": "/documentation/getting_started/reference/asset-files",
|
|
42
|
+
"/docs/reference/static-site-generation": "/documentation/getting_started/reference/static-site-generation",
|
|
43
|
+
"/docs/reference/search": "/documentation/getting_started/reference/search",
|
|
44
|
+
"/docs/reference/reloading": "/documentation/getting_started/reference/reloading",
|
|
45
|
+
"/docs/reference/notebook-support": "/documentation/getting_started/reference/notebook-support",
|
|
46
|
+
"/docs/reference/caching": "/documentation/getting_started/reference/caching",
|
|
47
|
+
"/docs/understanding": "/documentation/advanced/understanding",
|
|
48
|
+
"/docs/understanding/ipywidgets": "/documentation/advanced/understanding/ipywidgets",
|
|
49
|
+
"/docs/understanding/ipyvuetify": "/documentation/advanced/understanding/ipyvuetify",
|
|
50
|
+
"/docs/understanding/reacton": "/documentation/advanced/understanding/reacton",
|
|
51
|
+
"/docs/understanding/reacton-basics": "/documentation/advanced/understanding/reacton-basics",
|
|
52
|
+
"/docs/understanding/anatomy": "/documentation/advanced/understanding/anatomy",
|
|
53
|
+
"/docs/understanding/rules-of-hooks": "/documentation/advanced/understanding/rules-of-hooks",
|
|
54
|
+
"/docs/understanding/containers": "/documentation/advanced/understanding/containers",
|
|
55
|
+
"/docs/understanding/solara": "/documentation/advanced/understanding/solara",
|
|
56
|
+
"/docs/understanding/routing": "/documentation/advanced/understanding/routing",
|
|
57
|
+
"/docs/understanding/solara-server": "/documentation/advanced/understanding/solara-server",
|
|
58
|
+
"/docs/understanding/voila": "/documentation/advanced/understanding/voila",
|
|
59
|
+
"/docs/deploying": "/documentation/getting_started/deploying",
|
|
60
|
+
"/docs/deploying/self-hosted": "/documentation/getting_started/deploying/self-hosted",
|
|
61
|
+
"/docs/deploying/cloud-hosted": "/documentation/getting_started/deploying/cloud-hosted",
|
|
62
|
+
"/docs/enterprise": "/documentation/advanced/enterprise",
|
|
63
|
+
"/docs/enterprise/oauth": "/documentation/advanced/enterprise/oauth",
|
|
64
|
+
"/docs/development": "/documentation/advanced/development/setup",
|
|
65
|
+
"/docs/troubleshoot": "/documentation/getting_started/troubleshoot",
|
|
66
|
+
"/docs/changelog": "/changelog",
|
|
67
|
+
"/docs/contact": "/contact",
|
|
68
|
+
"/docs/faq": "/documentation/faq",
|
|
69
|
+
"/docs/lab": "/documentation/getting_started/lab",
|
|
70
|
+
"/api": "/documentation/api",
|
|
71
|
+
"/api/altair": "/documentation/components/viz/altair",
|
|
72
|
+
"/api/app_bar": "/documentation/components/layout/app_bar",
|
|
73
|
+
"/api/app_bar_title": "/documentation/components/layout/app_bar_title",
|
|
74
|
+
"/api/app_layout": "/documentation/components/layout/app_layout",
|
|
75
|
+
"/api/avatar": "/documentation/components/enterprise/avatar",
|
|
76
|
+
"/api/avatar_menu": "/documentation/components/enterprise/avatar_menu",
|
|
77
|
+
"/api/card": "/documentation/components/layout/card",
|
|
78
|
+
"/api/card_actions": "/documentation/components/layout/card_actions",
|
|
79
|
+
"/api/column": "/documentation/components/layout/column",
|
|
80
|
+
"/api/columns": "/documentation/components/layout/columns",
|
|
81
|
+
"/api/columns_responsive": "/documentation/components/layout/columns_responsive",
|
|
82
|
+
"/api/cross_filter_dataframe": "/documentation/api/cross_filter/cross_filter_dataframe",
|
|
83
|
+
"/api/cross_filter_report": "/documentation/api/cross_filter/cross_filter_report",
|
|
84
|
+
"/api/cross_filter_select": "/documentation/api/cross_filter/cross_filter_select",
|
|
85
|
+
"/api/cross_filter_slider": "/documentation/api/cross_filter/cross_filter_slider",
|
|
86
|
+
"/api/generate_routes": "/documentation/api/routing/generate_routes",
|
|
87
|
+
"/api/generate_routes_directory": "/documentation/api/routing/generate_routes_directory",
|
|
88
|
+
"/api/resolve_path": "/documentation/api/routing/resolve_path",
|
|
89
|
+
"/api/resolve_path/kiwi": "/documentation/api/routing/resolve_path/kiwi",
|
|
90
|
+
"/api/resolve_path/banana": "/documentation/api/routing/resolve_path/banana",
|
|
91
|
+
"/api/resolve_path/apple": "/documentation/api/routing/resolve_path/apple",
|
|
92
|
+
"/api/link": "/documentation/components/advanced/link",
|
|
93
|
+
"/api/link/kiwi": "/documentation/components/advanced/link/kiwi",
|
|
94
|
+
"/api/link/banana": "/documentation/components/advanced/link/banana",
|
|
95
|
+
"/api/link/apple": "/documentation/components/advanced/link/apple",
|
|
96
|
+
"/api/use_route": "/documentation/api/routing/use_route",
|
|
97
|
+
"/api/use_route/fruit": "/documentation/api/routing/use_route/fruit",
|
|
98
|
+
"/api/use_route/fruit/kiwi": "/documentation/api/routing/use_route/fruit/kiwi",
|
|
99
|
+
"/api/use_route/fruit/banana": "/documentation/api/routing/use_route/fruit/banana",
|
|
100
|
+
"/api/use_route/fruit/apple": "/documentation/api/routing/use_route/fruit/apple",
|
|
101
|
+
"/api/use_router": "/documentation/api/routing/use_router",
|
|
102
|
+
"/api/use_cross_filter": "/documentation/api/hooks/use_cross_filter",
|
|
103
|
+
"/api/use_dark_effective": "/documentation/api/hooks/use_dark_effective",
|
|
104
|
+
"/api/use_effect": "/documentation/api/hooks/use_effect",
|
|
105
|
+
"/api/use_exception": "/documentation/api/hooks/use_exception",
|
|
106
|
+
"/api/use_memo": "/documentation/api/hooks/use_memo",
|
|
107
|
+
"/api/use_previous": "/documentation/api/hooks/use_previous",
|
|
108
|
+
"/api/use_reactive": "/documentation/api/hooks/use_reactive",
|
|
109
|
+
"/api/use_state": "/documentation/api/hooks/use_state",
|
|
110
|
+
"/api/use_state_or_update": "/documentation/api/hooks/use_state_or_update",
|
|
111
|
+
"/api/use_task": "/documentation/components/lab/use_task",
|
|
112
|
+
"/api/use_thread": "/documentation/api/hooks/use_thread",
|
|
113
|
+
"/api/use_trait_observe": "/documentation/api/hooks/use_trait_observe",
|
|
114
|
+
"/examples/fullscreen": "/documentation/examples/fullscreen",
|
|
115
|
+
"/examples/fullscreen/authorization": "/apps/authorization",
|
|
116
|
+
"documentation/examples/fullscreen/authorization": "/apps/authorization",
|
|
117
|
+
"/examples/fullscreen/layout-demo": "/apps/layout-demo",
|
|
118
|
+
"/documentation/examples/fullscreen/layout-demo": "/apps/layout-demo",
|
|
119
|
+
"/examples/fullscreen/multipage": "/apps/multipage",
|
|
120
|
+
"/documentation/examples/fullscreen/multipage": "/apps/multipage",
|
|
121
|
+
"/examples/fullscreen/scatter": "apps/scatter",
|
|
122
|
+
"/documentation/examples/fullscreen/scatter": "/apps/scatter",
|
|
123
|
+
"/examples/fullscreen/scrolling": "/apps/scrolling",
|
|
124
|
+
"/documentation/examples/fullscreen/scrolling": "/apps/scrolling",
|
|
125
|
+
"/examples/fullscreen/tutorial-streamlit": "/apps/tutorial-streamlit",
|
|
126
|
+
"/documentation/examples/fullscreen/tutorial-streamlit": "/apps/tutorial-streamlit",
|
|
127
|
+
"/api/route": "/documentation/api/routing/route",
|
|
128
|
+
"/api/route/kiwi": "/documentation/api/routing/route/kiwi",
|
|
129
|
+
"/api/route/banana": "/documentation/api/routing/route/banana",
|
|
130
|
+
"/api/route/apple": "/documentation/api/routing/route/apple",
|
|
131
|
+
"/examples/libraries": "/documentation/examples/libraries",
|
|
132
|
+
"/examples/libraries/altair": "/documentation/examples/libraries/altair",
|
|
133
|
+
"/examples/libraries/bqplot": "/documentation/examples/libraries/bqplot",
|
|
134
|
+
"/examples/libraries/ipyleaflet": "/documentation/examples/libraries/ipyleaflet",
|
|
135
|
+
"/examples/libraries/ipyleaflet_advanced": "/documentation/examples/libraries/ipyleaflet_advanced",
|
|
136
|
+
"/examples/utilities": "/documentation/examples/utilities",
|
|
137
|
+
"/examples/utilities/calculator": "/documentation/examples/utilities/calculator",
|
|
138
|
+
"/examples/utilities/countdown_timer": "/documentation/examples/utilities/countdown_timer",
|
|
139
|
+
"/examples/utilities/todo": "/documentation/examples/utilities/todo",
|
|
140
|
+
"/examples/visualization": "/documentation/examples/visualization",
|
|
141
|
+
"/examples/visualization/annotator": "/documentation/examples/visualization/annotator",
|
|
142
|
+
"/examples/visualization/linked_views": "/documentation/examples/visualization/linked_views",
|
|
143
|
+
"/examples/visualization/plotly": "/documentation/examples/visualization/plotly",
|
|
144
|
+
"/examples/general": "/documentation/examples/general",
|
|
145
|
+
"/examples/general/custom_storage": "/documentation/examples/general/custom_storage",
|
|
146
|
+
"/examples/general/deploy_model": "/documentation/examples/general/deploy_model",
|
|
147
|
+
"/examples/general/live_update": "/documentation/examples/general/live_update",
|
|
148
|
+
"/examples/general/login_oauth": "/documentation/examples/general/login_oauth",
|
|
149
|
+
"/examples/general/pokemon_search": "/documentation/examples/general/pokemon_search",
|
|
150
|
+
"/examples/general/vue_component": "/documentation/examples/general/vue_component",
|
|
151
|
+
"/examples": "/documentation/examples",
|
|
152
|
+
"/examples/ai": "/documentation/examples/ai",
|
|
153
|
+
"/examples/ai/chatbot": "/documentation/examples/ai/chatbot",
|
|
154
|
+
"/examples/ai/tokenizer": "/documentation/examples/ai/tokenizer",
|
|
155
|
+
"/examples/basics": "/documentation/examples/basics",
|
|
156
|
+
"/examples/basics/sine": "/documentation/examples/basics/sine",
|
|
157
|
+
"/api/get_kernel_id": "/documentation/api/utilities/get_kernel_id",
|
|
158
|
+
"/api/get_session_id": "/documentation/api/utilities/get_session_id",
|
|
159
|
+
"/api/on_kernel_start": "/documentation/api/utilities/on_kernel_start",
|
|
160
|
+
"/api/component_vue": "/documentation/api/utilities/component_vue",
|
|
161
|
+
"/api/plotly": "/documentation/components/viz/plotly",
|
|
162
|
+
"/api/plotly_express": "/documentation/components/viz/plotly_express",
|
|
163
|
+
"/api/tab": "/documentation/components/lab/tab",
|
|
164
|
+
"/api/tabs": "/documentation/components/lab/tabs",
|
|
165
|
+
"/api/task": "/documentation/components/lab/task",
|
|
166
|
+
"/api/computed": "/documentation/api/utilities/computed",
|
|
167
|
+
"/api/markdown": "/documentation/components/output/markdown",
|
|
168
|
+
"/api/markdown_editor": "/documentation/components/output/markdown_editor",
|
|
169
|
+
"/api/matplotlib": "/documentation/components/viz/matplotlib",
|
|
170
|
+
"/api/echarts": "/documentation/components/viz/echarts",
|
|
171
|
+
"/api/theming": "/documentation/components/lab/theming",
|
|
172
|
+
"/api/griddraggable": "/documentation/components/layout/griddraggable",
|
|
173
|
+
"/api/gridfixed": "/documentation/components/layout/gridfixed",
|
|
174
|
+
"/api/html": "/documentation/components/output/html",
|
|
175
|
+
"/api/file_download": "/documentation/components/output/file_download",
|
|
176
|
+
"/api/hbox": "/documentation/components/layout/hbox",
|
|
177
|
+
"/api/vbox": "/documentation/components/layout/vbox",
|
|
178
|
+
"/api/sidebar": "/documentation/components/layout/sidebar",
|
|
179
|
+
"/api/row": "/documentation/components/layout/row",
|
|
180
|
+
"/api/error": "/documentation/components/status/error",
|
|
181
|
+
"/api/info": "/documentation/components/status/info",
|
|
182
|
+
"/api/progress": "/documentation/components/status/progress",
|
|
183
|
+
"/api/spinner": "/documentation/components/status/spinner",
|
|
184
|
+
"/api/success": "/documentation/components/status/success",
|
|
185
|
+
"/api/warning": "/documentation/components/status/warning",
|
|
186
|
+
"/api/image": "/documentation/components/output/image",
|
|
187
|
+
"/api/sql_code": "/documentation/components/output/sql_code",
|
|
188
|
+
"/api/tooltip": "/documentation/components/output/tooltip",
|
|
189
|
+
"/api/chat": "/documentation/components/lab/chat",
|
|
190
|
+
"/api/confirmation_dialog": "/documentation/components/lab/confirmation_dialog",
|
|
191
|
+
"/api/cookies_headers": "/documentation/components/lab/cookies_headers",
|
|
192
|
+
"/api/input_date": "/documentation/components/lab/input_date",
|
|
193
|
+
"/api/button": "/documentation/components/input/button",
|
|
194
|
+
"/api/checkbox": "/documentation/components/input/checkbox",
|
|
195
|
+
"/api/file_browser": "/documentation/components/input/file_browser",
|
|
196
|
+
"/api/file_drop": "/documentation/components/input/file_drop",
|
|
197
|
+
"/api/meta": "/documentation/components/advanced/meta",
|
|
198
|
+
"/api/style": "/documentation/components/advanced/style",
|
|
199
|
+
"/api/menu": "/documentation/components/lab/menu",
|
|
200
|
+
"/api/head": "/documentation/components/page/head",
|
|
201
|
+
"/api/input": "/documentation/components/input/input",
|
|
202
|
+
"/api/select": "/documentation/components/input/select",
|
|
203
|
+
"/api/slider": "/documentation/components/input/slider",
|
|
204
|
+
"/api/switch": "/documentation/components/input/switch",
|
|
205
|
+
"/api/togglebuttons": "/documentation/components/input/togglebuttons",
|
|
206
|
+
"/api/dataframe": "/documentation/components/data/dataframe",
|
|
207
|
+
"/api/pivot_table": "/documentation/components/data/pivot_table",
|
|
208
|
+
"/api/display": "/documentation/api/utilities/display",
|
|
209
|
+
"/api/memoize": "/documentation/api/utilities/memoize",
|
|
210
|
+
"/api/reactive": "/documentation/api/utilities/reactive",
|
|
211
|
+
"/api/widget": "/documentation/api/utilities/widget",
|
|
212
|
+
"/api/default_layout": "/documentation/components/layout",
|
|
213
|
+
"/api/title": "/documentation/components/page/title",
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
server._redirects = _redirects
|
|
218
|
+
autorouting._redirects = _redirects
|
|
13
219
|
|
|
14
220
|
|
|
15
221
|
@solara.component
|
|
@@ -96,8 +302,10 @@ def Layout(children=[]):
|
|
|
96
302
|
button_text="Quickstart",
|
|
97
303
|
)
|
|
98
304
|
|
|
99
|
-
with rv.Container(tag="section", fluid=True, ma_0=True, pa_0=True, class_="fill-height
|
|
100
|
-
if route_current is
|
|
305
|
+
with rv.Container(tag="section", fluid=True, ma_0=True, pa_0=True, class_="fill-height solara-content-main"):
|
|
306
|
+
if route_current is None:
|
|
307
|
+
return solara.Error("Page not found")
|
|
308
|
+
elif route_current.path == "/":
|
|
101
309
|
description = "Use ipywidgets with Solara to build powerful and scalable web apps for Jupyter and production in Python."
|
|
102
310
|
# both tags in one
|
|
103
311
|
solara.Meta(name="description", property="og:description", content=description)
|
|
@@ -123,9 +331,9 @@ def Layout(children=[]):
|
|
|
123
331
|
"""
|
|
124
332
|
)
|
|
125
333
|
with solara.HBox():
|
|
126
|
-
with solara.Link("/
|
|
127
|
-
solara.Button(label="Read more", class_="ma-1 homepage-button", href="/
|
|
128
|
-
with solara.Link("/
|
|
334
|
+
with solara.Link("/documentation"):
|
|
335
|
+
solara.Button(label="Read more", class_="ma-1 homepage-button", href="/documentation", color="primary", dark=True)
|
|
336
|
+
with solara.Link("/documentation/getting_started"):
|
|
129
337
|
solara.Button(label="Quickstart", class_="ma-1 homepage-button", color="primary", dark=True)
|
|
130
338
|
# with rv.Col(md=4, sm=5):
|
|
131
339
|
# rv.Img(src="https://dxhl76zpt6fap.cloudfront.net/public/landing/what.webp", style_="width:900px")
|
|
@@ -181,7 +389,7 @@ def Layout(children=[]):
|
|
|
181
389
|
text=True,
|
|
182
390
|
outlined=False,
|
|
183
391
|
)
|
|
184
|
-
with solara.Link("/examples"):
|
|
392
|
+
with solara.Link("/documentation/examples"):
|
|
185
393
|
with solara.Column(style="width: 100%;"):
|
|
186
394
|
solara.Button(
|
|
187
395
|
label="More examples",
|
|
@@ -197,7 +405,7 @@ def Layout(children=[]):
|
|
|
197
405
|
In Jupyter or standalone, and run them in production
|
|
198
406
|
using FastAPI or starlette.
|
|
199
407
|
|
|
200
|
-
Get more inspiration from our [examples](/examples).
|
|
408
|
+
Get more inspiration from our [examples](/documentation/examples).
|
|
201
409
|
"""
|
|
202
410
|
)
|
|
203
411
|
with rv.ExpansionPanels(v_model=target, on_v_model=set_target, mandatory=True, flat=True):
|
|
@@ -209,7 +417,8 @@ def Layout(children=[]):
|
|
|
209
417
|
rv.ExpansionPanelHeader(children=["FastAPI"])
|
|
210
418
|
with rv.ExpansionPanelContent():
|
|
211
419
|
solara.Markdown(
|
|
212
|
-
"Using [solara-server](/
|
|
420
|
+
"""Using [solara-server](documentation/advanced/understanding/solara-server),
|
|
421
|
+
we can run our app in production using FastAPI."""
|
|
213
422
|
)
|
|
214
423
|
|
|
215
424
|
with solara.Column(style={"width": "100%"}):
|
|
@@ -262,26 +471,32 @@ def Layout(children=[]):
|
|
|
262
471
|
solara.Markdown("#### Join our Mailing list to get the latest news")
|
|
263
472
|
with solara.Div(style={"width": "80%"}):
|
|
264
473
|
MailChimp(location=router.path)
|
|
265
|
-
|
|
266
474
|
else:
|
|
267
475
|
with rv.Row(
|
|
268
|
-
style_="
|
|
476
|
+
style_="flex-wrap: nowrap; margin: 0; min-height: calc(100vh - 215.5px);",
|
|
477
|
+
justify="center" if route_current is not None and route_current.path in ["documentation", "showcase"] else "start",
|
|
269
478
|
):
|
|
270
479
|
if route_current is not None and hasattr(route_current.module, "Sidebar"):
|
|
271
480
|
route_current.module.Sidebar() # type: ignore
|
|
272
481
|
else:
|
|
273
|
-
if route_current is not None and route_current.path
|
|
482
|
+
if route_current is not None and route_current.path not in ["documentation", "showcase", "contact", "changelog"]:
|
|
274
483
|
Sidebar()
|
|
275
|
-
with rv.Col(
|
|
484
|
+
with rv.Col(
|
|
485
|
+
tag="main",
|
|
486
|
+
md=True,
|
|
487
|
+
class_="pa-0",
|
|
488
|
+
style_=f"""max-width: {'1024px' if route_current.path not in ['documentation', 'contact', 'changelog']
|
|
489
|
+
else 'unset'}; overflow: hidden auto;""",
|
|
490
|
+
):
|
|
276
491
|
if route_current is not None and route_current.path == "/":
|
|
277
492
|
with rv.Row(align="center"):
|
|
278
493
|
pass
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
494
|
+
with solara.Row(
|
|
495
|
+
children=children,
|
|
496
|
+
justify="center",
|
|
497
|
+
classes=["solara-page-content-search"],
|
|
498
|
+
style=f"height: {'100%' if route_current.path == 'documentation' else 'unset'};",
|
|
499
|
+
):
|
|
285
500
|
pass
|
|
286
501
|
|
|
287
502
|
# absolute = True prevents the drawer from being below the overlay it generates
|
|
@@ -344,7 +559,6 @@ def Testimonial(text, name, position, img):
|
|
|
344
559
|
max_width=max_width,
|
|
345
560
|
class_="testimonial-card",
|
|
346
561
|
):
|
|
347
|
-
# rv.CardTitle(children=["Former Plotly CEO"])
|
|
348
562
|
with rv.CardActions():
|
|
349
563
|
with rv.ListItem(class_="grow"):
|
|
350
564
|
with rv.ListItemAvatar(color="grey darken-3"):
|
|
@@ -14,7 +14,7 @@ categories = solara.reactive(["Vandalism", "Assault", "Robbery"])
|
|
|
14
14
|
limit = solara.reactive(100)
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
ROOT = Path(solara.__file__).parent / "website" / "pages" / "
|
|
17
|
+
ROOT = Path(solara.__file__).parent / "website" / "pages" / "documentation" / "getting_started" / "content" / "04-tutorials"
|
|
18
18
|
path = ROOT / Path("SF_crime_sample.csv.gz")
|
|
19
19
|
url = "https://raw.githubusercontent.com/widgetti/solara/master/solara/website/pages/docs/content/04-tutorial/SF_crime_sample.csv"
|
|
20
20
|
|
|
@@ -12,7 +12,7 @@ def SharedComponent():
|
|
|
12
12
|
f"""
|
|
13
13
|
This component will be used on each page.
|
|
14
14
|
|
|
15
|
-
It uses the `app_state` [reactive variable](https://solara.dev/api/reactive)
|
|
15
|
+
It uses the `app_state` [reactive variable](https://solara.dev/documentation/api/utilities/reactive)
|
|
16
16
|
so that the state outlives each page
|
|
17
17
|
|
|
18
18
|
|
|
@@ -23,7 +23,7 @@ def Page():
|
|
|
23
23
|
It creates the `component_state` [using the use_reactive hook](https://solara.dev/api/use_reactive)
|
|
24
24
|
so that the state is bound to the component.
|
|
25
25
|
|
|
26
|
-
See also [about state management](https://solara.dev/
|
|
26
|
+
See also [about state management](https://solara.dev/documentation/getting_started/fundamentals/state-management) for more information.
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
component_state: {component_state.value}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import pathlib
|
|
2
|
+
import sys
|
|
1
3
|
from typing import Optional, cast
|
|
2
4
|
|
|
3
5
|
import pandas as pd
|
|
@@ -9,11 +11,11 @@ from solara.components.columns import Columns
|
|
|
9
11
|
from solara.components.file_drop import FileDrop
|
|
10
12
|
|
|
11
13
|
github_url = solara.util.github_url(__file__)
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
if sys.platform != "emscripten":
|
|
15
|
+
pycafe_url = solara.util.pycafe_url(path=pathlib.Path(__file__), requirements=["solara", "pandas", "plotly"])
|
|
16
|
+
else:
|
|
17
|
+
pycafe_url = None
|
|
18
|
+
df_sample = pd.read_csv("https://raw.githubusercontent.com/plotly/datasets/master/gapminderDataFiveYear.csv")
|
|
17
19
|
|
|
18
20
|
|
|
19
21
|
class State:
|
|
@@ -72,7 +74,10 @@ def Page():
|
|
|
72
74
|
with solara.Row():
|
|
73
75
|
solara.Button("Sample dataset", color="primary", text=True, outlined=True, on_click=State.load_sample, disabled=df is not None)
|
|
74
76
|
solara.Button("Clear dataset", color="primary", text=True, outlined=True, on_click=State.reset)
|
|
75
|
-
|
|
77
|
+
if sys.platform != "emscripten":
|
|
78
|
+
FileDrop(on_file=State.load_from_file, on_total_progress=lambda *args: None, label="Drag file here")
|
|
79
|
+
else:
|
|
80
|
+
solara.Info("File upload not supported in this environment")
|
|
76
81
|
|
|
77
82
|
if df is not None:
|
|
78
83
|
solara.SliderFloat(label="Size", value=State.size_max, min=1, max=100)
|
|
@@ -112,7 +117,16 @@ def Page():
|
|
|
112
117
|
else:
|
|
113
118
|
solara.Info("No data loaded, click on the sample dataset button to load a sample dataset, or upload a file.")
|
|
114
119
|
|
|
115
|
-
solara.
|
|
120
|
+
with solara.Column(style={"max-width": "400px"}):
|
|
121
|
+
solara.Button(label="View source", icon_name="mdi-github-circle", attributes={"href": github_url, "target": "_blank"}, text=True, outlined=True)
|
|
122
|
+
if sys.platform != "emscripten":
|
|
123
|
+
solara.Button(
|
|
124
|
+
label="Edit this example live on py.cafe",
|
|
125
|
+
icon_name="mdi-coffee-to-go-outline",
|
|
126
|
+
attributes={"href": pycafe_url, "target": "_blank"},
|
|
127
|
+
text=True,
|
|
128
|
+
outlined=True,
|
|
129
|
+
)
|
|
116
130
|
|
|
117
131
|
|
|
118
132
|
@solara.component
|
|
@@ -1,9 +1,50 @@
|
|
|
1
1
|
# Solara Changelog
|
|
2
2
|
|
|
3
|
+
## Version 1.30.0
|
|
4
|
+
|
|
5
|
+
### Details
|
|
6
|
+
|
|
7
|
+
* Feature: Multiple file support for `FileDrop`. [#562](https://github.com/widgetti/solara/pull/562)
|
|
8
|
+
* Feature: Solara server is now compatible with Pyodide (threads are combined if they cannot be used). [#569](https://github.com/widgetti/solara/pull/569)
|
|
9
|
+
* Bug Fix: Nested Vuetify apps were not displayed correctly. [#570](https://github.com/widgetti/solara/pull/570)
|
|
10
|
+
* Bug Fix: `on_kernel_start` callbacks were accumulating on hot reload. [#556](https://github.com/widgetti/solara/pull/556)
|
|
11
|
+
* Bug Fix: ES Modules were being loaded multiple times on hot reload. [#559](https://github.com/widgetti/solara/pull/559)
|
|
12
|
+
* Bug Fix: Theme CSS was not loaded when `rootPath` was non-trivial. [829946c](https://github.com/widgetti/solara/commit/829946c4bf47a2ea78d783bb500faaab93b2549b)
|
|
13
|
+
* Fix: `Route.component` is now rendered, instead of the internal `RenderPage` component. [#555](https://github.com/widgetti/solara/pull/555)
|
|
14
|
+
* Fix: `Route.layout` now allows for layouts to be used when defining routes manually. [#554](https://github.com/widgetti/solara/pull/554)
|
|
15
|
+
* Fix: Allow custom command like arguments that can be parsed by the application. [#558](https://github.com/widgetti/solara/pull/558)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
## Version 1.29.1
|
|
19
|
+
|
|
20
|
+
### Details
|
|
21
|
+
|
|
22
|
+
* Bug Fix: Solara installation failing when using [pixi](https://pixi.sh/latest/). [#553](https://github.com/widgetti/solara/pull/553)
|
|
23
|
+
|
|
24
|
+
## Version 1.29.0
|
|
25
|
+
|
|
26
|
+
<video width="80%" controls>
|
|
27
|
+
<source src="https://solara-assets.s3.us-east-2.amazonaws.com/videos/solara-1.29-drawdata-na.mp4" type="video/mp4" >
|
|
28
|
+
</video>
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
### Highlights
|
|
32
|
+
|
|
33
|
+
* Feature: Improved matplotlib support (pylab interface, display support) making it work more similar as in Jupyter. [#540](https://github.com/widgetti/solara/pull/540)
|
|
34
|
+
* Feature: [use_dark_effective](https://solara.dev/api/use_dark_effective) to get the effective dark mode of the app, making it easier to support dark mode on the Python side [#551](https://github.com/widgetti/solara/pull/551).
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
### Details
|
|
38
|
+
|
|
39
|
+
* Feature: [`/resourcez` endpoint](https://solara.dev/docs/understanding/solara-server) to get server resource statistics [#547](https://github.com/widgetti/solara/pull/547).
|
|
40
|
+
* Bug fix: router.push to external links should not use history, allowing navigation to external links [11c6094](https://github.com/widgetti/solara/commit/11c6094f3c47528d40f8be951c1d322e454f98ea).
|
|
41
|
+
* Bug fix: After upgrading widgets, solara server would still use the previous version due to browser cache [#523](https://github.com/widgetti/solara/pull/523).
|
|
42
|
+
* Bug fix: [The example todo app](https://solara.dev/examples/utilities/todo) would not work because Ref(..) did not work in combination with use_reactive [#544](https://github.com/widgetti/solara/pull/544).
|
|
43
|
+
|
|
3
44
|
## Version 1.28.0
|
|
4
45
|
|
|
5
46
|
<video width="80%" controls>
|
|
6
|
-
<source src=https://dxhl76zpt6fap.cloudfront.net/videos/solara-theme.mp4 type="video/mp4" >
|
|
47
|
+
<source src="https://dxhl76zpt6fap.cloudfront.net/videos/solara-theme.mp4" type="video/mp4" >
|
|
7
48
|
</video>
|
|
8
49
|
|
|
9
50
|
### Highlight
|
|
@@ -123,7 +164,7 @@
|
|
|
123
164
|
### Highlights
|
|
124
165
|
|
|
125
166
|
* Feature: Solara now has a production mode (enabled by passing in `--production`) which will load optimized CSS and JS and disable hot reloading.
|
|
126
|
-
Our [Solara server](https://solara.dev/
|
|
167
|
+
Our [Solara server](https://solara.dev/documentation/advanced/understanding/solara-server) page contains more information about it. If you used `--reload` or
|
|
127
168
|
`--dev` before you can now use the `-a/--auto-restart` flat. The `--dev` and `--reload` flags are kept for backwards compatibility.
|
|
128
169
|
* Feature: All `Input` components expose the `style` and `classes` arguments for custom styling.
|
|
129
170
|
* Feature: New component: [`InputDate` and `InputDateRange`](https://solara.dev/api/input_date) which use a datepicker in a menu. (#326)
|