Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NOOS-892/bump-max-dash-version #45

Merged
merged 4 commits into from
Oct 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -213,3 +213,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Display table and tab content in full height
- Add custom sx styling to the table with the prop tableStyle

## [2.0.8] - 2024-10-02

### Changed

- Suport more Dash versions, from 2.0 to <3.0
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,9 @@ As pre-requisite, install the Jupyter Lab extension [JupyterDash](https://medium
Then, copy the Dash snippet above into a Jupyter notebook cell and replace the `Dash` class with the `JupyterDash` class:

```python
import jupyter_dash

from dash import Dash
# Instantiate a Dash app
app = jupyter_dash.JupyterDash(__name__)
app = Dash(__name__)
app.layout = layout

app.run_server(mode='jupyterlab', host="0.0.0.0", port=8001)
Expand Down
11 changes: 5 additions & 6 deletions notebooks/test_alert.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,18 @@
"cells": [
{
"cell_type": "code",
"execution_count": null,
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
"from dash import html, dcc, Input, Output, State\n",
"import jupyter_dash\n",
"from dash import html, dcc, Input, Output, State, Dash\n",
"\n",
"import dash_material_components as dmc"
]
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -27,7 +26,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 3,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -58,7 +57,7 @@
"source": [
"# Dash app\n",
"\n",
"app = jupyter_dash.JupyterDash(__name__)\n",
"app = Dash(__name__)\n",
"app.layout = layout\n",
"\n",
"@app.callback(\n",
Expand Down
38 changes: 30 additions & 8 deletions notebooks/test_download.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@
"cells": [
{
"cell_type": "code",
"execution_count": null,
"execution_count": 1,
"id": "everyday-remainder",
"metadata": {},
"outputs": [],
"source": [
"from dash import dcc, Input, Output\n",
"import jupyter_dash\n",
"from dash import dcc, Input, Output, Dash\n",
"\n",
"\n",
"import dash_material_components as dmc"
]
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 2,
"id": "subjective-secondary",
"metadata": {},
"outputs": [],
Expand All @@ -38,7 +38,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 3,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -67,14 +67,36 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 4,
"id": "novel-gates",
"metadata": {},
"outputs": [],
"outputs": [
{
"data": {
"text/html": [
"\n",
" <iframe\n",
" width=\"100%\"\n",
" height=\"650\"\n",
" src=\"http://0.0.0.0:8001/\"\n",
" frameborder=\"0\"\n",
" allowfullscreen\n",
" \n",
" ></iframe>\n",
" "
],
"text/plain": [
"<IPython.lib.display.IFrame at 0x2d712afd0>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"# Dash app\n",
"\n",
"app = jupyter_dash.JupyterDash(__name__)\n",
"app = Dash(__name__)\n",
"app.layout = layout\n",
"\n",
"@app.callback(\n",
Expand Down
50 changes: 35 additions & 15 deletions notebooks/test_inputs.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,18 @@
"cells": [
{
"cell_type": "code",
"execution_count": 49,
"execution_count": 1,
"id": "substantial-ghana",
"metadata": {},
"outputs": [],
"source": [
"from jupyter_dash import JupyterDash\n",
"from dash import Input, Output\n",
"\n",
"from dash import Input, Output, Dash\n",
"import dash_material_components as dmc"
]
},
{
"cell_type": "code",
"execution_count": 50,
"execution_count": 2,
"id": "floral-upgrade",
"metadata": {},
"outputs": [],
Expand All @@ -39,7 +37,7 @@
},
{
"cell_type": "code",
"execution_count": 51,
"execution_count": 3,
"id": "documented-raise",
"metadata": {},
"outputs": [],
Expand All @@ -66,7 +64,7 @@
},
{
"cell_type": "code",
"execution_count": 52,
"execution_count": 4,
"id": "2a900805",
"metadata": {},
"outputs": [],
Expand All @@ -93,7 +91,7 @@
},
{
"cell_type": "code",
"execution_count": 53,
"execution_count": 5,
"id": "b43ef36b-4e3e-4667-b8ee-262e98db2d0d",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -177,7 +175,7 @@
},
{
"cell_type": "code",
"execution_count": 54,
"execution_count": 6,
"id": "2091a0c4",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -233,7 +231,7 @@
},
{
"cell_type": "code",
"execution_count": 55,
"execution_count": 7,
"id": "2d08930d",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -290,7 +288,7 @@
},
{
"cell_type": "code",
"execution_count": 56,
"execution_count": 8,
"id": "ef526880",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -361,7 +359,7 @@
},
{
"cell_type": "code",
"execution_count": 57,
"execution_count": 9,
"id": "pleased-invasion",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -394,14 +392,36 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 10,
"id": "extra-kenya",
"metadata": {},
"outputs": [],
"outputs": [
{
"data": {
"text/html": [
"\n",
" <iframe\n",
" width=\"100%\"\n",
" height=\"650\"\n",
" src=\"http://0.0.0.0:8001/\"\n",
" frameborder=\"0\"\n",
" allowfullscreen\n",
" \n",
" ></iframe>\n",
" "
],
"text/plain": [
"<IPython.lib.display.IFrame at 0x2d6330d50>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"# Dash app\n",
"\n",
"app = JupyterDash(__name__)\n",
"app = Dash(__name__)\n",
"app.layout = layout\n",
"\n",
"\n",
Expand Down
Loading