Skip to content

Commit

Permalink
⬆️ Update to Python 3.11 kernel, remove Python 3.7 kernel
Browse files Browse the repository at this point in the history
  • Loading branch information
veit committed Jul 9, 2023
1 parent a506652 commit f36056e
Show file tree
Hide file tree
Showing 46 changed files with 14,109 additions and 34,486 deletions.
648 changes: 642 additions & 6 deletions docs/dashboards/appmode/app-example.ipynb

Large diffs are not rendered by default.

1,063 changes: 634 additions & 429 deletions docs/dashboards/jupyter-dashboards/matplotlib-example.ipynb

Large diffs are not rendered by default.

5,070 changes: 1,364 additions & 3,706 deletions docs/dashboards/panel/deploy.ipynb

Large diffs are not rendered by default.

1,203 changes: 559 additions & 644 deletions docs/dashboards/panel/interact.ipynb

Large diffs are not rendered by default.

110 changes: 62 additions & 48 deletions docs/dashboards/panel/overview.ipynb

Large diffs are not rendered by default.

2,852 changes: 1,054 additions & 1,798 deletions docs/dashboards/panel/params.ipynb

Large diffs are not rendered by default.

2,113 changes: 673 additions & 1,440 deletions docs/dashboards/panel/pipelines.ipynb

Large diffs are not rendered by default.

4,336 changes: 1,443 additions & 2,893 deletions docs/dashboards/panel/style.ipynb

Large diffs are not rendered by default.

2,182 changes: 966 additions & 1,216 deletions docs/dashboards/panel/templates.ipynb

Large diffs are not rendered by default.

1,656 changes: 468 additions & 1,188 deletions docs/dashboards/panel/widgets.ipynb

Large diffs are not rendered by default.

142 changes: 82 additions & 60 deletions docs/dashboards/voila/bqplot_vuetify_example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -38,38 +38,39 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "c0fcf759225b425f813e37333e264d3c",
"model_id": "8374dfa8286541c9ae79487324ee2468",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"Figure(axes=[Axis(orientation='vertical', scale=LinearScale()), Axis(scale=LinearScale(max=101.0, min=-79.0))]…"
"Figure(axes=[Axis(orientation='vertical', scale=LinearScale()), Axis(scale=LinearScale(max=147.0, min=-75.0))]…"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"import bqplot\n",
"import ipywidgets as widgets\n",
"import numpy as np\n",
"\n",
"from bqplot import pyplot as plt\n",
"import bqplot\n",
"\n",
"\n",
"n = 200\n",
"\n",
"x = np.linspace(0.0, 10.0, n)\n",
"y = np.cumsum(np.random.randn(n)*10).astype(int)\n",
"y = np.cumsum(np.random.randn(n) * 10).astype(int)\n",
"\n",
"fig = plt.figure( title='Histogram')\n",
"fig = plt.figure(title=\"Histogram\")\n",
"np.random.seed(0)\n",
"hist = plt.hist(y, bins=25)\n",
"hist.scales['sample'].min = float(y.min())\n",
"hist.scales['sample'].max = float(y.max())\n",
"fig.layout.width = 'auto'\n",
"fig.layout.height = 'auto'\n",
"fig.layout.min_height = '300px' # so it shows nicely in the notebook\n",
"hist.scales[\"sample\"].min = float(y.min())\n",
"hist.scales[\"sample\"].max = float(y.max())\n",
"fig.layout.width = \"auto\"\n",
"fig.layout.height = \"auto\"\n",
"fig.layout.min_height = \"300px\" # so it shows nicely in the notebook\n",
"fig"
]
},
Expand All @@ -88,21 +89,21 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "dd36d0d8118942b1bf391d61ef0e600f",
"model_id": "6b17046f95124334beff5e9bcb3d20a2",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"Slider(class_='px-4', thumb_label='always', v_model=30)"
"Slider(class_='px-4', layout=None, thumb_label='always', v_model=30)"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"slider = v.Slider(thumb_label='always', class_=\"px-4\", v_model=30)\n",
"widgets.link((slider, 'v_model'), (hist, 'bins'))\n",
"slider = v.Slider(thumb_label=\"always\", class_=\"px-4\", v_model=30)\n",
"widgets.link((slider, \"v_model\"), (hist, \"bins\"))\n",
"slider"
]
},
Expand All @@ -121,7 +122,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "e86bbe4b50b04d50a11c37ad158f7f6b",
"model_id": "5d201d4ddaba4bd08a5ac308ba81b246",
"version_major": 2,
"version_minor": 0
},
Expand All @@ -134,13 +135,13 @@
}
],
"source": [
"fig2 = plt.figure( title='Line Chart')\n",
"fig2 = plt.figure(title=\"Line Chart\")\n",
"np.random.seed(0)\n",
"p = plt.plot(x, y)\n",
"\n",
"fig2.layout.width = 'auto'\n",
"fig2.layout.height = 'auto'\n",
"fig2.layout.min_height = '300px' # so it shows nicely in the notebook\n",
"fig2.layout.width = \"auto\"\n",
"fig2.layout.height = \"auto\"\n",
"fig2.layout.min_height = \"300px\" # so it shows nicely in the notebook\n",
"\n",
"fig2"
]
Expand All @@ -158,14 +159,16 @@
"metadata": {},
"outputs": [],
"source": [
"brushintsel = bqplot.interacts.BrushIntervalSelector(scale=p.scales['x'])\n",
"brushintsel = bqplot.interacts.BrushIntervalSelector(scale=p.scales[\"x\"])\n",
"\n",
"\n",
"def update_range(*args):\n",
" if brushintsel.selected is not None and brushintsel.selected.shape == (2,):\n",
" mask = (x > brushintsel.selected[0]) & (x < brushintsel.selected[1])\n",
" hist.sample = y[mask]\n",
" \n",
"brushintsel.observe(update_range, 'selected')\n",
"\n",
"\n",
"brushintsel.observe(update_range, \"selected\")\n",
"fig2.interaction = brushintsel"
]
},
Expand All @@ -184,7 +187,7 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "6971a9ade9f54f6eb2908235a4affc0a",
"model_id": "2f33d2886dc641738f70b48794f1b1c5",
"version_major": 2,
"version_minor": 0
},
Expand All @@ -198,12 +201,12 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "664923121b2d471d947470527c37fa7f",
"model_id": "c5d7ad8bfbec4762b55c0905dc26faae",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"Slider(class_='px-4', thumb_label='always', v_model=5)"
"Slider(class_='px-4', layout=None, thumb_label='always', v_model=5)"
]
},
"metadata": {},
Expand All @@ -214,24 +217,31 @@
"n2 = 200\n",
"\n",
"x2 = np.linspace(0.0, 10.0, n)\n",
"y2 = np.cumsum(np.random.randn(n)*10).astype(int)\n",
"y2 = np.cumsum(np.random.randn(n) * 10).astype(int)\n",
"\n",
"figHist2 = plt.figure( title='Histogram 2')\n",
"figHist2 = plt.figure(title=\"Histogram 2\")\n",
"np.random.seed(0)\n",
"hist2 = plt.hist(y2, bins=25)\n",
"hist2.scales['sample'].min = float(y2.min())\n",
"hist2.scales['sample'].max = float(y2.max())\n",
"figHist2.layout.width = 'auto'\n",
"figHist2.layout.height = 'auto'\n",
"figHist2.layout.min_height = '300px' # so it shows nicely in the notebook\n",
"hist2.scales[\"sample\"].min = float(y2.min())\n",
"hist2.scales[\"sample\"].max = float(y2.max())\n",
"figHist2.layout.width = \"auto\"\n",
"figHist2.layout.height = \"auto\"\n",
"figHist2.layout.min_height = \"300px\" # so it shows nicely in the notebook\n",
"\n",
"sliderHist2 = v.Slider(_metadata={'mount_id': 'histogram_bins2'}, thumb_label='always', class_='px-4', v_model=5)\n",
"sliderHist2 = v.Slider(\n",
" _metadata={\"mount_id\": \"histogram_bins2\"},\n",
" thumb_label=\"always\",\n",
" class_=\"px-4\",\n",
" v_model=5,\n",
")\n",
"from traitlets import link\n",
"link((sliderHist2, 'v_model'), (hist2, 'bins'))\n",
"\n",
"\n",
"link((sliderHist2, \"v_model\"), (hist2, \"bins\"))\n",
"\n",
"\n",
"display(figHist2)\n",
"display(sliderHist2)\n"
"display(sliderHist2)"
]
},
{
Expand All @@ -253,47 +263,59 @@
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "349630190ad4460dbb969f3e5d4c4d2f",
"model_id": "690f12534c2c44828eb13890671a73e6",
"version_major": 2,
"version_minor": 0
},
"text/plain": [
"Tabs(children=[Tab(children=['Tab1']), Tab(children=['Tab2']), TabItem(children=[Layout(align_center=True, chi"
"Tabs(children=[Tab(children=['Tab1'], layout=None), Tab(children=['Tab2'], layout=None), TabItem(children=[Lay"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"v.Tabs(_metadata={'mount_id': 'content-main'}, children=[\n",
" v.Tab(children=['Tab1']),\n",
" v.Tab(children=['Tab2']),\n",
" v.TabItem(children=[\n",
" v.Layout(row=True, wrap=True, align_center=True, children=[\n",
" v.Flex(xs12=True, lg6=True, xl4=True, children=[\n",
" fig, slider\n",
" ]),\n",
" v.Flex(xs12=True, lg6=True, xl4=True, children=[\n",
" figHist2, sliderHist2\n",
" ]),\n",
" v.Flex(xs12=True, xl4=True, children=[\n",
" fig2\n",
" ]),\n",
" ])\n",
" ]),\n",
" v.TabItem(children=[\n",
" v.Container(children=['Lorum ipsum'])\n",
" ])\n",
"])"
"v.Tabs(\n",
" _metadata={\"mount_id\": \"content-main\"},\n",
" children=[\n",
" v.Tab(children=[\"Tab1\"]),\n",
" v.Tab(children=[\"Tab2\"]),\n",
" v.TabItem(\n",
" children=[\n",
" v.Layout(\n",
" row=True,\n",
" wrap=True,\n",
" align_center=True,\n",
" children=[\n",
" v.Flex(\n",
" xs12=True,\n",
" lg6=True,\n",
" xl4=True,\n",
" children=[fig, slider],\n",
" ),\n",
" v.Flex(\n",
" xs12=True,\n",
" lg6=True,\n",
" xl4=True,\n",
" children=[figHist2, sliderHist2],\n",
" ),\n",
" v.Flex(xs12=True, xl4=True, children=[fig2]),\n",
" ],\n",
" )\n",
" ]\n",
" ),\n",
" v.TabItem(children=[v.Container(children=[\"Lorum ipsum\"])]),\n",
" ],\n",
")"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3.7.4",
"display_name": "Python 3.11 Kernel",
"language": "python",
"name": "python-374"
"name": "python311"
},
"language_info": {
"codemirror_mode": {
Expand All @@ -305,7 +327,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.4"
"version": "3.11.4"
},
"latex_envs": {
"LaTeX_envs_menu_present": true,
Expand Down

0 comments on commit f36056e

Please sign in to comment.