Skip to content

Commit

Permalink
feat: add make command (nbready) to create jupyter notebook venv
Browse files Browse the repository at this point in the history
close #413
  • Loading branch information
korikuzma committed Jul 10, 2024
1 parent 76267b0 commit e23597d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,14 @@ devready:
@echo '### Do not forget to `source ${VEDIR}/bin/activate` to use this environment ###'
@echo '#################################################################################'

#=> nbready: create venv, install prerequisites, install pkg in notebook mode
.PHONY: nbready
nbready:
make ${VEDIR} && source ${VEDIR}/bin/activate && pip install -e '.[extras,notebooks]'
@echo '#################################################################################'
@echo '### Do not forget to `source ${VEDIR}/bin/activate` to use this environment ###'
@echo '#################################################################################'

#=> install: install package
.PHONY: install-extras
install-extras:
Expand Down
4 changes: 2 additions & 2 deletions notebooks/getting_started/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ The following software packages must exist in your execution environment before
From a terminal window, run the following commands:
* git clone --recurse-submodules https://github.com/ga4gh/vrs-python
* cd vrs-python
* make devready
* source venv/3.10/bin/activate
* make nbready
* source venv/3.12/bin/activate
* cd notebooks/getting_started
* jupyter notebook notebook_name.ipynb

Expand Down

0 comments on commit e23597d

Please sign in to comment.