Jupyter manages its programming language support through the installation of kernels. By default, the Jupyter Notebook will have the Python programming language installed. We're going to install the CircuitPython Kernel which is a wrapper which allows CircuitPython's REPL to communicate with Jupyter's code cells. There's an environment variable on your system called $PATH, which tells it where to look when you run a command like jupyter in a terminal. You can see this with echo $PATH. The place Jupyter can be installed is not normally on $PATH. On Linux, that's /home/you/.local/bin.
This is my preferred way to install Python and Jupyter notebook for doing scientific data analysis. There are many alternative ways of doing this that you can find on Google. I'm doing this on a MacBook Pro (Retina, 13-inch, Early 2015) with macOS High Sierra 10.13.3.
In the past, I used virtualenv
to manage virtual environments with Python 2. Python3 has built-in handling of virtual environments, so I use that here instead. If you need to use Python 2, then you'll want to install virtualenv
(see first link at the bottom).
Install Homebrew
- Find helpful customer reviews and review ratings for Luminar 2018 Jupiter for Mac OS Download Professional Photo Editing Software at Amazon.com.
- How to do I access Jupyter Notebook from Terminal of Mac After updating the Mac OS from High Sierra to Catalina Ask Question Asked 1 year, 6 months ago. Active 1 year, 6 months ago. Viewed 1k times 0. I installed the new version of Catalina from the Apple store and replaced it.
All of these steps are done in the Mac OS Terminal, so start that first.
First install XCode:
Install Homebrew:
Open or create the file ~/.bash_profile and write:
Install Python 3
As of 2018-4-9, this will install Python 3 (I think previously it installed Python 2): Fighting souls mac os.
Set up virtual environment
By default, Python 3 comes with the ability to create virtual environments. Deepwood ash mac os.
Make a folder to host your virtual envs:
Create a virtual env for Jupyter:
Run virtual environment and Jupyter
Start the virtual env:
Install packages for scientific computing:
Run Jupyter: Afterward (far away times) mac os.
A browser window will open with the Jupyter file browser in your current working directory.
Exit Jupyter and virtual environment
Never riders mac os. Jupyter notebook will run in your terminal window until you close it (with Ctrl-C).
You can close the virtual environment with:
Jupiter Mac Os Update
UPDATE 2018-04-19: A very useful (and IMO essential) addition to Jupyter notebook is the Table of Contents extension. I show how I install this in a different blog post.
Jupiter Mac Os X
References
Jupiter Mac Os Download
- The steps above are mostly based on Maria Mele's 'Install Python 2.7, virtualenv and virtualenvwrapper on OS X Mavericks/Yosemite'
- Documentation on Python 3 virtual environments
- Explanation of how Homebrew installs Python — i.e. why Python 3 isn't linked to the command`python`, which motivated some of my deviations from the above blog post