Skip to content

Commit

Permalink
Try jupyterlite build
Browse files Browse the repository at this point in the history
  • Loading branch information
matthew-brett committed Jul 8, 2024
1 parent 587a5d4 commit 137c17a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ jobs:

- name: Build Python book
run: |
make python-book
make python-book-jl
cp website/python-README.md python-book/README.md
cp requirements.txt python-book
touch python-book/.nojekyll
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ python-book/
r-book/
\#*
/.quarto/
.jupyterlite.doit.db
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ python-book: ## Build the Python version of the book
python-book: ninja-config
cd $(SOURCE_DIR) && ninja python-book

python-book-jl: python-book
$(PIP_INSTALL_CMD) -r py-jl-requirements.txt
$(PYTHON) -m jupyter lite build --contents $(PYTHON_BOOK_DIR)/notebooks --output-dir $(PYTHON_BOOK_DIR)/jupyterlite

r-book: ## Build the R version of the book
r-book: ninja-config
cd $(SOURCE_DIR) && ninja r-book
Expand Down
4 changes: 4 additions & 0 deletions py_jl_requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Python requirements to build jupyter-lite site for Simon book
jupyterlite-core
jupyterlite-pyodide-kernel
jupyterlab_server

0 comments on commit 137c17a

Please sign in to comment.