You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16-6Lines changed: 16 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,7 @@ First of all, this is not a book!
36
36
Every notebook is (almost) independent from the others. Therefore you can select only the notebook you are interested in!
37
37
38
38
```diff
39
-
- Every notebook, contains python code ready to use!
39
+
- Every notebook contains python code ready to use!
40
40
```
41
41
42
42
It is not easy to find on internet examples of financial models implemented in python which are ready to use and well documented.
@@ -118,8 +118,13 @@ You have several options:
118
118
119
119
1)**Docker:** Install [docker](https://www.docker.com/) following the instructions in [install link](https://docs.docker.com/install/)
120
120
121
-
At this point, you just need to run the script ```docker_start_notebook.py``` and you are done.
122
-
This script will download the data-science docker image [scipy-notebook](https://hub.docker.com/r/jupyter/scipy-notebook), that will be used every time you run the script (the script will take about 10-15 minutes to download the image, ONLY the first time). You can also download a different image by modifying the script. For a list of images see [here](https://jupyter-docker-stacks.readthedocs.io/en/latest/using/selecting.html).
121
+
At this point, you just need to run the script `docker_start_notebook.py`, i.e enter in the shell the following code:
122
+
123
+
```bash
124
+
python docker_start_notebook.py
125
+
```
126
+
127
+
The script will download the data-science docker image [scipy-notebook](https://hub.docker.com/r/jupyter/scipy-notebook), that will be used every time you run the script (the script will take about 10-15 minutes to download the image, ONLY the first time). You can also download a different image by modifying the script. For a list of images see [here](https://jupyter-docker-stacks.readthedocs.io/en/latest/using/selecting.html).
123
128
124
129
2)**Virtual environment:**
125
130
Here I explain how to create a virtual environment with [Anaconda](https://www.anaconda.com/distribution/). A possible alternative could be to use the python module [venv](https://docs.python.org/3.7/tutorial/venv.html).
@@ -130,8 +135,13 @@ source activate FMNM
130
135
pip install --requirement requirements.txt
131
136
```
132
137
133
-
3) If you prefer to use the python version already installed in your system, you just need to enter `jupyter-notebook` in the shell.
134
-
However, if you are using an old version, there could be compatibility problems.
138
+
3) If you prefer to use the python version already installed in your system, you just need to check that all the packages listed in `requirements.txt` are installed, and then enter in the shell the code:
139
+
140
+
```bash
141
+
jupyter-notebook
142
+
```
143
+
144
+
However, if you are using old versions, there could be compatibility problems.
135
145
136
146
137
147
#### If you wish to use a different python version or a different docker image, you will probably need to recompile the Cython code!
@@ -141,7 +151,7 @@ If you are using the data science image, you can open the shell in the notebooks
141
151
python docker_start_notebook.py
142
152
```
143
153
144
-
after that, copy-paste the following code into the shell:
154
+
after that, paste the following code into the shell:
0 commit comments