File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed
Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ VERSION=$(shell git describe --exact-match HEAD 2>/dev/null)
1414
1515.PHONY : all install clean uninstall again release
1616.PHONY : info infopath infozsh infobash
17+ .PHONY : notebook-kernel
1718
1819all : install
1920
@@ -31,6 +32,10 @@ $(STAGPY): setup.py
3132 $(VPIP ) install -e .
3233 @$(STAGPY ) version
3334
35+ notebook-kernel : $(STAGPY )
36+ $(VPIP ) install -U ipykernel
37+ $(VPY ) -m ipykernel install --user --name=stagpy-git
38+
3439info : infopath infozsh infobash
3540
3641infopath :
Original file line number Diff line number Diff line change @@ -86,3 +86,20 @@ directory of the repository and run::
8686
8787This should create a PDF file showing a plot of the temperature field with
8888streamlines.
89+
90+ Use as a Jupyter notebook kernel
91+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
92+
93+ If you want to access the virtual environment - and therefore the development
94+ version of StagPy - in a Jupyter notebook, run
95+ ::
96+
97+ % make notebook-kernel
98+
99+ This will create a new Jupyter kernel named ``stagpy-git `` you can use to
100+ access the virtual environment in a notebook.
101+
102+ To remove that kernel, run
103+ ::
104+
105+ % jupyter kernelspec uninstall stagpy-git
You can’t perform that action at this time.
0 commit comments