Skip to content

Commit

Permalink
Fix for JupyterLite
Browse files Browse the repository at this point in the history
  • Loading branch information
misterhay committed Jan 10, 2024
1 parent 78f6414 commit 1b9dd01
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions content/data-labyrinth/music/music.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"![Callysto.ca Banner](https://github.com/callysto/curriculum-notebooks/blob/master/callysto-notebook-banner-top.jpg?raw=true)\n",
"\n",
"<a href=\"https://hub.callysto.ca/jupyter/hub/user-redirect/git-pull?repo=https%3A%2F%2Fgithub.com%2Fcallysto%2Fdata-labyrinth&branch=main&subPath=music/music.ipynb&depth=1\" target=\"_parent\"><img src=\"https://raw.githubusercontent.com/callysto/curriculum-notebooks/master/open-in-callysto-button.svg?sanitize=true\" width=\"123\" height=\"24\" alt=\"Open in Callysto\"/></a>"
"![Callysto.ca Banner](https://github.com/callysto/curriculum-notebooks/blob/master/callysto-notebook-banner-top.jpg?raw=true)"
]
},
{
Expand All @@ -32,7 +30,12 @@
"source": [
"key = ''\n",
"\n",
"import piplite, pyodide, pyodide_http\n",
"await piplite.install(['nbformat','plotly','requests'])\n",
"pyodide_http.patch_all()\n",
"import requests\n",
"import pandas as pd\n",
"import plotly.express as px\n",
"from IPython import get_ipython\n",
"def check(query):\n",
" try:\n",
Expand All @@ -43,8 +46,6 @@
" except:\n",
" print('Make sure you have entered the key correctly.')\n",
" get_ipython().set_next_input(\"key = ''\\ncheck(key)\")\n",
"import pandas as pd\n",
"import plotly.express as px\n",
"check(key)"
]
}
Expand Down

0 comments on commit 1b9dd01

Please sign in to comment.