Skip to content

Commit bac77a2

Browse files
authored
Merge pull request #4 from sequgen/2-gallery
Gallery notebook + binder
2 parents 5e6f051 + a5140df commit bac77a2

File tree

3 files changed

+336
-21
lines changed

3 files changed

+336
-21
lines changed

README.md

Lines changed: 18 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,46 @@
11
# notebooks
22

3+
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/sequgen/notebooks/HEAD?urlpath=lab)
4+
35
Jupyter notebook demo of [sequgen](https://github.com/sequgen/sequgen) functionality.
46

57
## Prerequisites
68

79
For running locally on Ubuntu:
810

911
```shell
10-
sudo apt install jupyter-core
11-
sudo apt install jupyter-notebook
1212
sudo apt install git
1313
```
1414

1515
## Running the notebooks locally
1616

17+
First clone this repository.
18+
19+
```shell
20+
git clone https://github.com/sequgen/notebooks.git .
21+
```
22+
23+
Install the dependencies with
24+
1725
```shell
1826
# Create a virtualenv, e.g. with
19-
python3 -m venv venv-sequgen-demo
27+
python3 -m venv env
2028

2129
# activate virtualenv
22-
source venv-sequgen-demo/bin/activate
30+
source env/bin/activate
2331

2432
# make sure to have a recent version of pip
2533
pip install --upgrade pip wheel
2634

27-
# (from the project root directory)
28-
# install sequgen
29-
pip install --no-cache-dir git+https://github.com/sequgen/sequgen@ef89edb8f0fed866f3455db3852d5474f0b8a009
30-
31-
# install ipykernel
32-
pip install ipykernel
33-
python3 -m ipykernel install --user --name=sequgen-demo
34-
```
35-
36-
Check to see if it all worked by listing the packages that are present in the environment:
37-
38-
```shell
39-
pip list
35+
# (from the repository root directory)
36+
# install sequgen + jupyter
37+
pip install --requirement requirements.txt
4038
```
4139

42-
This should yield a table of packages alongside where they were installed from. If everything looks OK, start the
43-
notebook server:
40+
Start the notebook server:
4441

4542
```shell
46-
jupyter notebook
43+
jupyter lab
4744
```
4845

49-
And open a browser to http://localhost:8888 to interact with the notebook.
46+
It will open a web browser with the Jupyter Lab environment, in file-browser on left side bar open the notebook (*.ipynb files) of interest.

0 commit comments

Comments
 (0)