Skip to content

Commit

Permalink
fix: imports now use raw cds githack
Browse files Browse the repository at this point in the history
  • Loading branch information
ManonMarchand committed Nov 6, 2024
1 parent e2e4076 commit 7ee2a37
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 25 deletions.
6 changes: 3 additions & 3 deletions content/01-intro-to-python-vizier-and-ipyaladin.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@
"outputs": [],
"source": [
"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)"
"import micropip\n",
"await micropip.install(\"https://rawcdn.githack.com/cds-astro/jupyterlite/e2e40767dc80cd5170411150d3d3023b17f33b15/content/pyodide/wheels/cdshealpix-0.6.4-cp312-cp312-emscripten_3_1_58_wasm32.whl\",\n",
" \"https://rawcdn.githack.com/cds-astro/jupyterlite/e2e40767dc80cd5170411150d3d3023b17f33b15/content/pyodide/wheels/mocpy-0.17.0-cp312-cp312-emscripten_3_1_58_wasm32.whl\")"
]
},
{
Expand Down
6 changes: 3 additions & 3 deletions content/02-mocpy.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
"outputs": [],
"source": [
"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)"
"import micropip\n",
"await micropip.install(\"https://rawcdn.githack.com/cds-astro/jupyterlite/e2e40767dc80cd5170411150d3d3023b17f33b15/content/pyodide/wheels/cdshealpix-0.6.4-cp312-cp312-emscripten_3_1_58_wasm32.whl\",\n",
" \"https://rawcdn.githack.com/cds-astro/jupyterlite/e2e40767dc80cd5170411150d3d3023b17f33b15/content/pyodide/wheels/mocpy-0.17.0-cp312-cp312-emscripten_3_1_58_wasm32.whl\")"
]
},
{
Expand Down
21 changes: 7 additions & 14 deletions content/03-draw_me_a_MOC.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,8 @@
"metadata": {},
"outputs": [],
"source": [
"import micropip\n",
"from pathlib import Path"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"whl_paths = list(Path.cwd().glob(pattern=\"pyodide/wheels/*\"))\n",
"await micropip.install(\"emfs:\" + str(path) for path in whl_paths)"
"%pip install ipywidgets==8.1.2\n",
"%pip install ipyaladin"
]
},
{
Expand All @@ -36,8 +26,11 @@
"metadata": {},
"outputs": [],
"source": [
"%pip install ipywidgets==8.1.2\n",
"%pip install ipyaladin"
"import micropip\n",
"# cdshealpix and mocpy install\n",
"import micropip\n",
"await micropip.install(\"https://rawcdn.githack.com/cds-astro/jupyterlite/e2e40767dc80cd5170411150d3d3023b17f33b15/content/pyodide/wheels/cdshealpix-0.6.4-cp312-cp312-emscripten_3_1_58_wasm32.whl\",\n",
" \"https://rawcdn.githack.com/cds-astro/jupyterlite/e2e40767dc80cd5170411150d3d3023b17f33b15/content/pyodide/wheels/mocpy-0.17.0-cp312-cp312-emscripten_3_1_58_wasm32.whl\")"
]
},
{
Expand Down
8 changes: 4 additions & 4 deletions content/04-adass2024-ipyaladin-demo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@
"outputs": [],
"source": [
"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)"
"import micropip\n",
"await micropip.install(\"https://rawcdn.githack.com/cds-astro/jupyterlite/e2e40767dc80cd5170411150d3d3023b17f33b15/content/pyodide/wheels/cdshealpix-0.6.4-cp312-cp312-emscripten_3_1_58_wasm32.whl\",\n",
" \"https://rawcdn.githack.com/cds-astro/jupyterlite/e2e40767dc80cd5170411150d3d3023b17f33b15/content/pyodide/wheels/mocpy-0.17.0-cp312-cp312-emscripten_3_1_58_wasm32.whl\")"
]
},
{
Expand Down Expand Up @@ -153,7 +153,7 @@
"metadata": {},
"outputs": [],
"source": [
"aladin.add_fits(\"chandra.fits\", name=\"chandra\")"
"aladin.add_fits(\"data/chandra.fits\", name=\"chandra\")"
]
},
{
Expand Down
8 changes: 8 additions & 0 deletions content/data/chandra.fits

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,5 @@ pyodide-http>=0.2.1
# CDS and/or astro libraries
ipyaladin>=0.5.1
astropy
astroquery>=0.4.8.dev0
astroquery @ https://files.pythonhosted.org/packages/01/40/f8a4ba92b3dd02695f9670f937db3849028ab976c067db4ed589ba438e6b/astroquery-0.4.8.dev9321-py3-none-any.whl
regions

0 comments on commit 7ee2a37

Please sign in to comment.