Download Miniconda for Python version 3 (we would be able to run both Python major versions). The URL for Miniconda download is https://docs.conda.io/en/latest/miniconda.html where you should choose the option for 64-bit Linux.
curro@mint2modesto:~$ cd Downloads
curro@mint2modesto:~/Downloads$ wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
--2020-03-24 19:13:28-- https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
Resolving repo.anaconda.com (repo.anaconda.com)... 104.16.130.3, 104.16.131.3, 2606:4700::6810:8303, ...
Connecting to repo.anaconda.com (repo.anaconda.com)|104.16.130.3|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 85055499 (81M) [application/x-sh]
Saving to: ‘Miniconda3-latest-Linux-x86_64.sh’
Run the installer
curro@mint2modesto:~/Downloads$ bash Miniconda3-latest-Linux-x86_64.sh
Welcome to Miniconda3 4.8.2
In order to continue the installation process, please review the license
agreement.
Please, press ENTER to continue
>>>
Accept the default installation directory /home/curro/Miniconda3 and let the installer initialize Miniconda3.
Open a new terminal and it will have the base environment activated. Update conda in this new terminal
(py3) curro@mint2modesto:~$ jupyter notebook
[I 19:43:36.145 NotebookApp] Writing notebook server cookie secret to /home/curro/.local/share/jupyter/runtime/notebook_cookie_secret
[I 19:43:37.193 NotebookApp] Serving notebooks from local directory: /home/curro
[I 19:43:37.194 NotebookApp] The Jupyter Notebook is running at:
[I 19:43:37.195 NotebookApp] http://localhost:8888/?token=42d493626e94c6f5c1ae2d7cdcd300075b584cbe20b62f72
[I 19:43:37.196 NotebookApp] or http://127.0.0.1:8888/?token=42d493626e94c6f5c1ae2d7cdcd300075b584cbe20b62f72
[I 19:43:37.196 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 19:43:37.283 NotebookApp]
To access the notebook, open this file in a browser:
file:///home/curro/.local/share/jupyter/runtime/nbserver-6617-open.html
Or copy and paste one of these URLs:
http://localhost:8888/?token=42d493626e94c6f5c1ae2d7cdcd300075b584cbe20b62f72
or http://127.0.0.1:8888/?token=42d493626e94c6f5c1ae2d7cdcd300075b584cbe20b62f72
[I 19:43:45.541 NotebookApp] Creating new notebook in
[I 19:43:45.572 NotebookApp] Writing notebook-signing key to /home/curro/.local/share/jupyter/notebook_secret
[I 19:43:47.232 NotebookApp] Kernel started: 9ab7c66b-92db-4e3e-a137-9900af586546
[I 19:45:47.214 NotebookApp] Saving file at /Untitled.ipynb
By default you can only access notebooks and directories below the folder from which you run the jupyter notebook command, but not files above this folder. You can alter this default behavior and other jupyter default config options editing the application config file as in the following example.
You first generate a config file for your notebooks
(py3) curro@mint2modesto:~$ jupyter notebook --generate-config
Writing default config to: /home/curro/.jupyter/jupyter_notebook_config.py
(py3) curro@mint2modesto:~$ ls ~/.jupyter/
jupyter_notebook_config.py
This file contains the default configuration of jupyter. In order to create a folder and make this directory the default working directory for our notebooks, you can proceed as follows (not recommended unless you are positive all of your notebooks will be contained in this folder and its subfolders
(py3) curro@mint2modesto:~$ mkdir ~/Python
You should then open the jupyter_notebook_config.py file in a text editor and replace the line
#c.NotebookApp.notebook_dir = ''
by
c.NotebookApp.notebook_dir = 'ISP/Python'
Keeping your Anaconda install updated
The most important command in this case is
conda update --all
This will update all packages in the current environment. You can also update a selected package or packages (and dependencies) as follows
conda update numpy scipy
Again this will only affect the current environment.