Skip to content

Commit 2aa52ad

Browse files
committed
jupyterlite
1 parent f4baddf commit 2aa52ad

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/pyodide.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,14 @@ jobs:
4646
run: pyodide build
4747
- name: Setup Pages
4848
uses: actions/configure-pages@v5
49+
- name: Install JupyterLite
50+
run: pip install jupyterlite
51+
- name: Jupyterlite build
52+
run: jupyter lite build --contents test_healpyviz.ipynb --output-dir dist
4953
- name: Upload artifact
5054
uses: actions/upload-pages-artifact@v3
5155
with:
52-
# Upload entire repository
53-
path: '.'
56+
path: './dist'
5457
- name: Deploy to GitHub Pages
5558
id: deployment
5659
uses: actions/deploy-pages@v4

test_healpyvis.ipynb

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"cells": [{"cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": ["import healpy as hp\n", "import matplotlib.pyplot as plt"]}, {"cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": ["m = hp.read_map(\n", " \"test/data/wmap_band_iqumap_r9_7yr_W_v4_udgraded32_masked_smoothed10deg_fortran.fits\"\n", ");"]}, {"cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": ["hp.projview(m, coord=[\"G\"], projection_type=\"mollweide\");"]}, {"cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": ["plt.savefig(\"map.png\")"]}], "metadata": {"kernelspec": {"display_name": "Python 3", "language": "python", "name": "python3"}, "language_info": {"codemirror_mode": {"name": "ipython", "version": 3}, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.6.4"}}, "nbformat": 4, "nbformat_minor": 2}

0 commit comments

Comments
 (0)