Skip to content

Commit

Permalink
maint: update jupyterlite
Browse files Browse the repository at this point in the history
  • Loading branch information
ManonMarchand committed Nov 6, 2024
1 parent 0d70bb7 commit 9f72d46
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 29 deletions.
13 changes: 5 additions & 8 deletions content/01-intro-to-python-vizier-and-ipyaladin.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"metadata": {},
"outputs": [],
"source": [
"%pip install ipywidgets==8.1.2\n",
"%pip install ipyaladin\n",
"%pip install sidecar"
]
Expand All @@ -24,13 +23,11 @@
"metadata": {},
"outputs": [],
"source": [
"import micropip, http.client, pyodide_http\n",
"await micropip.install([\"ssl\",\"https://files.pythonhosted.org/packages/c3/c8/d74794dff5c6802994d3dfe506d691d9e0ff3e6b2f34df577899685b2617/astroquery-0.4.7.dev9008-py3-none-any.whl\",\n",
" \"https://rawcdn.githack.com/cds-astro/jupyterlite/cea7bf366dd077953acc578cbb63f2319793a018/content/pyodide/wheels/cdshealpix-0.6.5-cp311-cp311-emscripten_3_1_46_wasm32.whl\",\n",
" \"https://rawcdn.githack.com/cds-astro/jupyterlite/cea7bf366dd077953acc578cbb63f2319793a018/content/pyodide/wheels/mocpy-0.13.1-cp311-cp311-emscripten_3_1_46_wasm32.whl\"])\n",
"pyodide_http.patch_all()\n",
"from importlib import reload\n",
"reload(http.client);"
"import micropip\n",
"from pathlib import Path\n",
"# cdshealpix and mocpy install\n",
"whl_paths = list(Path.cwd().glob(pattern=\"pyodide/wheels/*\"))\n",
"await micropip.install(\"emfs:\" + str(path) for path in whl_paths)"
]
},
{
Expand Down
5 changes: 3 additions & 2 deletions content/02-mocpy.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@
"outputs": [],
"source": [
"import micropip\n",
"from pathlib import Path\n",
"# cdshealpix and mocpy install\n",
"await micropip.install([\"https://rawcdn.githack.com/cds-astro/jupyterlite/cea7bf366dd077953acc578cbb63f2319793a018/content/pyodide/wheels/cdshealpix-0.6.5-cp311-cp311-emscripten_3_1_46_wasm32.whl\",\n",
" \"https://rawcdn.githack.com/cds-astro/jupyterlite/cea7bf366dd077953acc578cbb63f2319793a018/content/pyodide/wheels/mocpy-0.13.1-cp311-cp311-emscripten_3_1_46_wasm32.whl\"])"
"whl_paths = list(Path.cwd().glob(pattern=\"pyodide/wheels/*\"))\n",
"await micropip.install(\"emfs:\" + str(path) for path in whl_paths)"
]
},
{
Expand Down
9 changes: 0 additions & 9 deletions content/03-draw_me_a_MOC.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,6 @@
"outputs": [],
"source": [
"whl_paths = list(Path.cwd().glob(pattern=\"pyodide/wheels/*\"))\n",
"whl_paths"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"await micropip.install(\"emfs:\" + str(path) for path in whl_paths)"
]
},
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
17 changes: 7 additions & 10 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
# Core modules (mandatory)
jupyterlite-core==0.3.0
jupyterlab~=4.1.8
notebook~=7.1.3
jupyterlite-core==0.4.1
jupyterlab~=4.2.5
notebook~=7.2.2

# Python kernel (optional)
jupyterlite-pyodide-kernel==0.3.1

# JavaScript kernel (optional)
jupyterlite-javascript-kernel==0.2.1
jupyterlite-pyodide-kernel==0.4.2

# Language support (optional)
jupyterlab-language-pack-fr-FR
Expand All @@ -20,7 +17,7 @@ jupyterlab-night
jupyterlab_miami_nights

# Python: anywidget library for Jupyter notebooks (optional)
ipywidgets==8.1.2
ipywidgets>=8.1.3,<9
anywidget
# Python: ipyevents library for Jupyter notebooks (optional)
ipyevents>=2.0.1
Expand All @@ -34,6 +31,6 @@ plotly>=5,<6
pyodide-http>=0.2.1

# CDS and/or astro libraries
ipyaladin>=0.3.0
ipyaladin>=0.5.1
astropy
astroquery @ https://files.pythonhosted.org/packages/01/40/f8a4ba92b3dd02695f9670f937db3849028ab976c067db4ed589ba438e6b/astroquery-0.4.8.dev9321-py3-none-any.whl
astroquery>=0.4.8.dev0

0 comments on commit 9f72d46

Please sign in to comment.