chore: Move command to run jupyter notebooks from Makefile to scripts
This commit is contained in:
parent
1394874993
commit
198f9851a5
4
Makefile
4
Makefile
@ -33,10 +33,6 @@ run:
|
|||||||
init:
|
init:
|
||||||
@${POETRY} install
|
@${POETRY} install
|
||||||
|
|
||||||
.PHONY: notebooks #: Run jupyter notebooks.
|
|
||||||
notebooks:
|
|
||||||
@${PYTHON} -m jupyter ${JUPYTER_OPTION}
|
|
||||||
|
|
||||||
%:
|
%:
|
||||||
@test -f scripts/${*}.sh
|
@test -f scripts/${*}.sh
|
||||||
@${SHELL} scripts/${*}.sh
|
@${SHELL} scripts/${*}.sh
|
||||||
|
|||||||
@ -23,7 +23,8 @@ ANKISYNCD_SESSION_DB_PATH=./session.db
|
|||||||
MKDOCS_OPTION=serve
|
MKDOCS_OPTION=serve
|
||||||
|
|
||||||
## Jupyter
|
## Jupyter
|
||||||
JUPYTER_OPTION=lab
|
### JUPYTER_CMD
|
||||||
|
### JUPYTER_NOTEBOOK_DIR
|
||||||
|
|
||||||
## Path
|
## Path
|
||||||
PATH:=.venv/bin:${PATH}
|
PATH:=.venv/bin:${PATH}
|
||||||
7
scripts/jupyter.sh
Normal file
7
scripts/jupyter.sh
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# file: jupyter.sh
|
||||||
|
# description: Run Jupyter Notebooks.
|
||||||
|
|
||||||
|
[[ ! -z "${JUPYTER_CMD}" ]] || JUPYTER_CMD=lab
|
||||||
|
[[ ! -z "${JUPYTER_NOTEBOOK_DIR}" ]] || JUPYTER_NOTEBOOK_DIR=docs/src/notebooks
|
||||||
|
${JUPYTER} ${JUPYTER_CMD} --notebook-dir=${JUPYTER_NOTEBOOK_DIR}
|
||||||
Loading…
Reference in New Issue
Block a user