|
1 | 1 | # notebooks |
2 | 2 |
|
| 3 | +[](https://mybinder.org/v2/gh/sequgen/notebooks/HEAD?urlpath=lab) |
| 4 | + |
3 | 5 | Jupyter notebook demo of [sequgen](https://github.com/sequgen/sequgen) functionality. |
4 | 6 |
|
5 | 7 | ## Prerequisites |
6 | 8 |
|
7 | 9 | For running locally on Ubuntu: |
8 | 10 |
|
9 | 11 | ```shell |
10 | | -sudo apt install jupyter-core |
11 | | -sudo apt install jupyter-notebook |
12 | 12 | sudo apt install git |
13 | 13 | ``` |
14 | 14 |
|
15 | 15 | ## Running the notebooks locally |
16 | 16 |
|
| 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 | + |
17 | 25 | ```shell |
18 | 26 | # Create a virtualenv, e.g. with |
19 | | -python3 -m venv venv-sequgen-demo |
| 27 | +python3 -m venv env |
20 | 28 |
|
21 | 29 | # activate virtualenv |
22 | | -source venv-sequgen-demo/bin/activate |
| 30 | +source env/bin/activate |
23 | 31 |
|
24 | 32 | # make sure to have a recent version of pip |
25 | 33 | pip install --upgrade pip wheel |
26 | 34 |
|
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 |
40 | 38 | ``` |
41 | 39 |
|
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: |
44 | 41 |
|
45 | 42 | ```shell |
46 | | -jupyter notebook |
| 43 | +jupyter lab |
47 | 44 | ``` |
48 | 45 |
|
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