Original article can be found here (source): Artificial Intelligence on Medium

In my previous blog , I walked you through all steps to run a jupyter notebook. If you’re a data scientist or developer and upgraded to macOS Catalina 10.15, then you might have faced some issues with jupyter notebook.The latest version of Mac Catalina functionality is different than the previous s version. Follow below steps to configure and run jupyter notebook.

We will go through each step one by one configure jupyter notebook.

Step I : Install the anaconda distribution.

Install anaconda mac os

Prerequisite: Python Language Introduction Before we start with how to install pip for Python on macOS, let’s first go through the basic introduction to Python. Python is a widely-used general-purpose, high-level programming language. Install Anaconda3 Python 3.7 on MacOS Catalina Beta 10.15. Anaconda or Miniconda version: Anaconda3-2019.03-MacOSX-x8664. Operating System: conda info PASTE OUTPUT HERE: conda list -show-channel-urls PASTE OUTPUT HERE: 👍. Music, TV, and podcasts take center stage. ITunes forever changed the way people experienced. Save the file (don't open it with the Archive Unitility) and follow the install instructions.The above package will only work on Mac OS X versions 10.7 and up.I've tested it on OS 10.10 (on an old MacBook Pro), 10.7 (on a Mini) and 10.9 (on one of those fancy new black cylinder-shaped Mac Pros that look like an air purifier).

The preferable way to go forward is to use command line installer instead of graphic . Use this link to download CLI https://repo.anaconda.com/archive/Anaconda3-2020.02-MacOSX-x86_64.sh

Once downloaded ,go to terminal and run

I will be using python3 as python2 is not much in use now a days.

To start the installation run below command in your terminal.

Instead of Downloads use the path where you have install anaconda distribution and replace Anaconda3–2020.02-MacOSX-x86_64.sh with your filename.

You need to press Enter here ,

Read the license agreement and scroll to bottom

Enter yes. Next it will ask for location to install.

Anaconda Mac Download

Press Enter .

Anaconda Python Mac

Once you press enter , message props “Do you wish the installer to initialize Anaconda3 by running conda init?”

Enter Yes

The default shell for Catalina is zsh so our next step will be to install Zsh

Step II :Set-up macOs Terminal with Zsh

For Catalina

First set-up Xcode command-line tools, also known as xcode-select

If there is some issue try running below script.

Then you need to install software package management system for macOS i.e Homebrew.

Run the below command

Next step is to install default shell for Catalina ,i.e zsh.

Now we need to integrate zsh in iterm2. If you are not having iterm2 ,install it using brew.

For zsh — iterm2 integration ,

Step III :Conda ,Pip and Jupyter installation

Conda can be installed using brew

Update conda to latest version

For pip you can either use conda or easy install

Conda way

Easy install way

For nbextensions run following command

Lastly for jupyter use brew

Step IV :Creating Virtual environment and link it to ipykernel

To create a virtual environment pass the name of environment with python version to be used. Suppose we name our environment as cat and want to use python 3.8.2 version.

Anaconda Download Mac Os Catalina Dmg

Activate the environment

Install ipykernel

Link kernel to virtual environment.

Catalina

If you want to display the name of environment say “Cat_Virtual”

Go to iterm2 and run

Install Anaconda Mac Os

Open any notebook , it will appear like this,

Enjoy 😊 !!