Skip to content

Commit 8fd8721

Browse files
author
Sunil Thaha
authored
Merge pull request #462 from sthaha/chore-jupyter-notes
chore(pyproject): add an env to run jupyter lab
2 parents f9cb2d6 + 101fde8 commit 8fd8721

File tree

1 file changed

+25
-4
lines changed

1 file changed

+25
-4
lines changed

pyproject.toml

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ authors = [
2121

2222
classifiers = [
2323
"Programming Language :: Python",
24-
"Programming Language :: Python :: 3",
24+
"Programming Language :: Python :: 3",
2525
"Programming Language :: Python :: 3.10",
2626
]
2727
dependencies = [
@@ -66,8 +66,8 @@ path = "src/kepler_model/__about__.py"
6666
python = "3.10"
6767
extra-dependencies = [
6868
"coverage[toml]>=6.5",
69-
"ipdb",
70-
"ipython",
69+
"ipdb",
70+
"ipython",
7171
"pytest",
7272
]
7373

@@ -83,6 +83,27 @@ cov = [
8383
"cov-report",
8484
]
8585

86+
[tool.hatch.envs.lab]
87+
extra-dependencies = [
88+
"jupyterlab",
89+
"notebook",
90+
"voila",
91+
"ipywidgets",
92+
# vim please
93+
"jupyterlab-vim",
94+
95+
"beautifulsoup4",
96+
# read parquet files
97+
# "pyarrow",
98+
99+
# graphing
100+
"matplotlib",
101+
"graphviz",
102+
]
103+
104+
[tool.hatch.envs.lab.scripts]
105+
note = "jupyter lab --NotebookApp.token='' --allow-root"
106+
86107
[tool.hatch.envs.types]
87108
extra-dependencies = [
88109
"mypy>=1.0.0",
@@ -114,7 +135,7 @@ line-length = 160
114135

115136
[tool.pytest.ini_options]
116137
markers = [
117-
"focus", # used in development to mark focused tests
138+
"focus", # used in development to mark focused tests
118139
]
119140

120141
[tool.pymarkdown]

0 commit comments

Comments
 (0)