Skip to content

Commit ad69606

Browse files
authored
Merge pull request #1434 from jakubzitny/deepnote-button
✨ NEW: Add Launch in Deepnote button setting
2 parents 405373f + fefd80f commit ad69606

4 files changed

Lines changed: 29 additions & 1 deletion

File tree

docs/_config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ launch_buttons:
4444
notebook_interface: "classic" # The interface interactive links will activate ["classic", "jupyterlab"]
4545
binderhub_url: "https://mybinder.org"
4646
colab_url: "https://colab.research.google.com"
47+
deepnote_url: "https://deepnote.com"
4748
thebe: true
4849

4950
parse:

docs/interactive/launchbuttons.ipynb

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,30 @@
140140
"```{note}\n",
141141
"Google Colab links will only work for pages that have the `.ipynb` extension.\n",
142142
"```"
143-
]
143+
],
144+
"cell_type": "markdown",
145+
"metadata": {}
146+
},
147+
{
148+
"source": [
149+
"## Add a Launch in {term}`Deepnote` button\n",
150+
"\n",
151+
"If your Jupyter Book is hosted online on GitHub, you can automatically insert buttons that link to the Jupyter Notebook running on [Deepnote](https://deepnote.com/).\n",
152+
"When a user clicks the button, they'll be taken to a live version of the page.\n",
153+
"\n",
154+
"Similar to Binder and Colab link buttons, you can automatically include Deepnote link buttons with the following configuration in `_config.yml`:\n",
155+
"\n",
156+
"```yaml\n",
157+
"launch_buttons:\n",
158+
" colab_url: \"https://deepnote.com\"\n",
159+
"```\n",
160+
"\n",
161+
"```{note}\n",
162+
"Deepnote links will only work for pages that have the `.ipynb` extension.\n",
163+
"```"
164+
],
165+
"cell_type": "markdown",
166+
"metadata": {}
144167
}
145168
],
146169
"metadata": {

jupyter_book/config_schema.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,9 @@
181181
},
182182
"colab_url": {
183183
"type": "string"
184+
},
185+
"deepnote_url": {
186+
"type": "string"
184187
}
185188
}
186189
},

jupyter_book/default_config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ launch_buttons:
7979
jupyterhub_url : "" # The URL of the JupyterHub (e.g., https://datahub.berkeley.edu)
8080
thebe : false # Add a thebe button to pages (requires the repository to run on Binder)
8181
colab_url : "" # The URL of Google Colab (https://colab.research.google.com)
82+
deepnote_url : "" # The URL of Deepnote (https://deepnote.com)
8283

8384
repository:
8485
url : https://github.com/executablebooks/jupyter-book # The URL to your book's repository

0 commit comments

Comments
 (0)