This tutorial contains two parts,first it is to download Anaconda (A package manager tool, which contains conda command, then it is to use conda commmand to intall jupyter.
PART 1 ANACONDA
1.DOWNLOAD
From https://www.anaconda.com/distribution/ choose Python 3.7 version, then you will get a document named 'Anaconda3'.
2.OPEN
Find a file called 'Anaconda Prompt', and open it, then you will get a window as the following.
You can check the Anaconda version to see if it is intalled properly. Use the conmmand below.
conda --version
3.CREAT ENVIROMENT
Normally, we would like to creat a new enviroment(folder) to start our work, you can use the following command to creat a new work path.(Folder name'snowflakes' and install a package 'biopython' into it)
conda create --name snowflakes biopython
Then we need to activate the new enviroment(change the basic work path).
conda activate snowflakes (for conda versions on or later than 4.6)
activate snowflakes (for conda versions prior to 4.6)
************************************
conda update conda (You can always use this command to update versions )
After activation, you enviroment will change to the following.
By now, we have successfully installed Anaconda.
Detailed and offiicial turorial reference: https://docs.conda.io/projects/conda/en/latest/user-guide/getting-started.html
PART 2 JUPYTER
Use the following command to install jupyter.
conda install -c conda-forge jupyterlab
Then checkthe version of it to check if it has been installed.
jupyter notebook --version
Once it shows a proper version, use the following command , and it will automatically open jupyter in your browser。
jupyter lab
*****ATTENTION****
If it returns 'implementerror' error, go and find a folder in called 'tornado', then get into 'platform'.(C:\Users\Pc\Anaconda3\envs\snowflakes\Lib\site-packages\tornado\platform)
Find a file called 'asyncio.py',open it using txt. Add the following code after 'import asyncio'.
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
Save it and try jupyter opening command again.
For detailed tutorial :https://jupyterlab.readthedocs.io/en/stable/getting_started/installation.html