Skip to content

Use Xeus Python #42

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -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:
2 changes: 1 addition & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ build:
python: "mambaforge-4.10"

conda:
environment: environment.yml
environment: build-environment.yml

sphinx:
configuration: conf.py
27 changes: 27 additions & 0 deletions build-environment.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion content/notebooks/Intro.ipynb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"metadata": {
"kernelspec": {
"display_name": "Pyolite",
"display_name": "Python (XPython)",
"language": "python",
"name": "python"
},
11 changes: 1 addition & 10 deletions content/notebooks/Lorenz.ipynb
Original file line number Diff line number Diff line change
@@ -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"
},
31 changes: 7 additions & 24 deletions environment.yml
Original file line number Diff line number Diff line change
@@ -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

1 change: 1 addition & 0 deletions jupyter-lite.json
Original file line number Diff line number Diff line change
@@ -2,6 +2,7 @@
"jupyter-lite-schema-version": 0,
"jupyter-config-data": {
"appName": "Try Jupyter!",
"defaultKernelName": "python",
"disabledExtensions": [
"@jupyterlab/server-proxy",
"jupyterlab-server-proxy",