create a folder
md my-new-projectchange into it
cd my-new-projectFirst we create a new virtual environment
virtualenv --python=python3 ./py_envsource ./py_env/bin/activateIf you want to get out of the environment, run...
deactivatepip install numpy pandas scipy jupyter ipythonjupyter notebookYou can rename the notebook (click "Untitled" and give it a new name), which will save it in the folder.
To stop the notebook, close the browser windows, and then press Ctrl + c followed by y in the terminal.
If you want to directly open the notebook file you created, you can start the notebook with the filename as the last argument (assuming you named your notebook "my_notebook"):
jupyter notebook my_notebook.ipynbIf we import a module, and want to see the docs for a function (for example minimize from scipy.optimize)...
import scipy.optimize as optIn the notebook, you can press Shift + Tab to bring up the documentation.
opt.minimize # <- put cursor at end of method, press Shift + Tab