Back in 2017 I wrote a post to support users that experienced issues launching a Jupyter notebook in the (then new) MacOS 10.12.5. I am encountering a similar-ish issue after installing Sonoma and Jupyter 7.0, but it is not quite the same. The original post is here:
In this case, the browser is launched, but not rendering is shown in Safari. I am not sure if this is an issue with Sonoma, or indeed with the Jupyter Lab. I applied a similar fix to my new issue, and force the browser to be Chrome (I know, I know…)
Since I wrote the original post the architecture of Jupyter has changed a bit and the commands are different. I have updated the post from 2017 to reflect this (and leave the old commands there for posterity). In the spirit of transparency, I am adding the new commands here:
- Open a terminal and type the following command:
- In the terminal navigate to the place where the configuration file is. In other words, type the following:
- Open the
jupyter_lab_config.pyfile and look for a line that says:
# c.ServerApp.browser = ''
Change the line as follows: Delete the hash and write the name of your browser in between the quotes.
For SAFARI it would look as follows
c.ServerApp.browser = 'safari'
If you are a CHROME supporter, the command looks a tad bit more complicated:
c.ServerApp.browser = 'open -a /Applications/Google\ Chrome.app %s'
- Save the script and close it.
- Restart your terminal and launch Jupyter…