Skip to content

Commit

Permalink
FIX: install notebook dependencies in environment
Browse files Browse the repository at this point in the history
  • Loading branch information
redeboer committed Oct 21, 2024
1 parent 14837e5 commit 6a6d337
Show file tree
Hide file tree
Showing 4 changed files with 116 additions and 271 deletions.
1 change: 1 addition & 0 deletions .binder/postBuild
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ curl -LsSf https://astral.sh/uv/install.sh | sh
source $HOME/.cargo/env
uv export \
--extra jupyter \
--extra notebooks \
> requirements.txt
uv pip install \
--requirement requirements.txt \
Expand Down
13 changes: 0 additions & 13 deletions docs/symbolics.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,6 @@
"# Symbolic amplitude models"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"tags": [
"remove-cell"
]
},
"outputs": [],
"source": [
"!uv pip install -q 'numpy~=1.26' black==24.2.0 sympy==1.12"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down
15 changes: 7 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,6 @@ requires = [

[project]
authors = [{name = "Common Partial Wave Analysis", email = "[email protected]"}]
dependencies = [
"graphviz",
"ipympl",
"matplotlib <3.9.0", # https://github.com/ComPWA/compwa.github.io/actions/runs/9189453016/job/25271564131?pr=274
"matplotlib",
"mpl-interactions",
"numpy==1.*",
]
description = "Source code for the ComPWA Organization pages"
dynamic = ["version"]
license = {file = "LICENSE"}
Expand All @@ -31,6 +23,7 @@ dev = [
"sphinx-autobuild",
]
doc = [
"compwa-github-io[notebooks]",
"myst-nb",
"sphinx",
"sphinx-api-relink",
Expand All @@ -48,6 +41,7 @@ doc = [
"sphinxcontrib-bibtex >=2",
]
jupyter = [
"compwa-github-io[notebooks]",
"jupyterlab",
"jupyterlab-code-formatter >=3.0.0",
"jupyterlab-git",
Expand All @@ -56,6 +50,11 @@ jupyter = [
"python-lsp-ruff",
"python-lsp-server[rope]",
]
notebooks = [
"black",
"numpy",
"sympy",
]
sty = [
"attrs",
"compwa-github-io[types]",
Expand Down
Loading

0 comments on commit 6a6d337

Please sign in to comment.