Skip to content

Commit

Permalink
Add comment about where jupyter_notebook_url comes from
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhollas committed Oct 14, 2024
1 parent 325e001 commit ba89c59
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions open_app.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"metadata": {},
"outputs": [],
"source": [
"# variable `jupyter_notebook_url` is injected by appmode\n",
"url = urlparse.urlsplit(jupyter_notebook_url) # noqa: F821\n",
"\n",
"query = urlparse.parse_qs(url.query)"
Expand Down
1 change: 1 addition & 0 deletions single_app.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"metadata": {},
"outputs": [],
"source": [
"# variable `jupyter_notebook_url` is injected by appmode\n",
"url = urlparse.urlsplit(jupyter_notebook_url) # noqa: F821\n",
"try:\n",
" name = urlparse.parse_qs(url.query)[\"app\"][0]\n",
Expand Down
1 change: 1 addition & 0 deletions start.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"source": [
"import urllib.parse as urlparse\n",
"\n",
"# variable `jupyter_notebook_url` is injected by appmode\n",
"try:\n",
" url = urlparse.urlsplit(jupyter_notebook_url)\n",
"except NameError:\n",
Expand Down

0 comments on commit ba89c59

Please sign in to comment.