diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 6a0043d..8f50956 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -20,13 +20,20 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 - - name: Install Conda environment from environment.yml - uses: mamba-org/provision-with-micromamba@v12 + + - name: Install mamba + uses: mamba-org/setup-micromamba@v1 + with: + micromamba-version: '1.5.1-0' + environment-file: build-environment.yml + cache-environment: true + - name: Build the JupyterLite site shell: bash -l {0} run: | cp README.md content jupyter lite build --contents content --output-dir dist + - name: Upload dist uses: actions/upload-pages-artifact@v1 with: diff --git a/.readthedocs.yml b/.readthedocs.yml index 603fbe5..02f2629 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -6,7 +6,7 @@ build: python: "mambaforge-4.10" conda: - environment: environment.yml + environment: build-environment.yml sphinx: configuration: conf.py diff --git a/build-environment.yml b/build-environment.yml new file mode 100644 index 0000000..f3668ee --- /dev/null +++ b/build-environment.yml @@ -0,0 +1,27 @@ +name: try-jupyter-build +channels: +- conda-forge +dependencies: +- python=3.10 +- mamba +- pydata-sphinx-theme +- myst-parser +- bqplot +- ipycanvas >=0.9.1 +- ipyleaflet +- ipympl>=0.8.2 +- ipywidgets>=8.1.1,<9 +- jupyterlab>=3.5.2,<4 +- jupyterlab-language-pack-fr-FR +- jupyterlab-language-pack-zh-CN +- jupyterlab-fasta>=3,<4 +- jupyterlab-geojson>=3,<4 +- jupyterlab-tour +- jupyterlab-night +- jupyterlite-core=0.1.2 +- jupyterlite-xeus-python=0.9.4 +- jupyterlite-sphinx>=0.9.1,<0.10 +- plotly>=5,<6 +- pip: + - jupyterlite-xeus-sqlite==0.2.1 + - jupyterlab-open-url-parameter diff --git a/content/notebooks/Intro.ipynb b/content/notebooks/Intro.ipynb index a175ef9..c76462d 100755 --- a/content/notebooks/Intro.ipynb +++ b/content/notebooks/Intro.ipynb @@ -1,7 +1,7 @@ { "metadata": { "kernelspec": { - "display_name": "Pyolite", + "display_name": "Python (XPython)", "language": "python", "name": "python" }, diff --git a/content/notebooks/Lorenz.ipynb b/content/notebooks/Lorenz.ipynb index c9d21dc..790bc20 100644 --- a/content/notebooks/Lorenz.ipynb +++ b/content/notebooks/Lorenz.ipynb @@ -14,15 +14,6 @@ "Before we start, we import some preliminary libraries." ] }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "%pip install -q ipywidgets" - ] - }, { "cell_type": "code", "execution_count": null, @@ -236,7 +227,7 @@ ], "metadata": { "kernelspec": { - "display_name": "Pyolite", + "display_name": "Python (XPython)", "language": "python", "name": "python" }, diff --git a/environment.yml b/environment.yml index c93f6c0..b4602ef 100644 --- a/environment.yml +++ b/environment.yml @@ -1,27 +1,10 @@ name: try-jupyter channels: -- conda-forge + - https://repo.mamba.pm/emscripten-forge + - conda-forge dependencies: -- python=3.10 -- mamba -- pydata-sphinx-theme -- myst-parser -- bqplot -- ipycanvas >=0.9.1 -- ipyleaflet -- ipympl>=0.8.2 -- ipywidgets>=8,<9 -- jupyterlab>=3.5.2,<4 -- jupyterlab-language-pack-fr-FR -- jupyterlab-language-pack-zh-CN -- jupyterlab-fasta>=3,<4 -- jupyterlab-geojson>=3,<4 -- jupyterlab-tour -- jupyterlab-night -- jupyterlite-core=0.1.2 -- jupyterlite-pyodide-kernel=0.1.1 -- jupyterlite-sphinx>=0.9.1,<0.10 -- plotly>=5,<6 -- pip: - - jupyterlite-xeus-sqlite==0.2.1 - - jupyterlab-open-url-parameter + - ipywidgets >=8.1.1,<9 + - matplotlib + - numpy >=1.17.3,<1.25 # for scipy + - scipy=1.8 + diff --git a/jupyter-lite.json b/jupyter-lite.json index 8eaeedc..7f900eb 100644 --- a/jupyter-lite.json +++ b/jupyter-lite.json @@ -2,6 +2,7 @@ "jupyter-lite-schema-version": 0, "jupyter-config-data": { "appName": "Try Jupyter!", + "defaultKernelName": "python", "disabledExtensions": [ "@jupyterlab/server-proxy", "jupyterlab-server-proxy",