Jupyter Notebook Native Macos App

  1. Macos Jupyter Notebook

So, Jupyter Lab is starting to get really interesting as a day-to-day replacement for standard Jupyter Notebooks and as a python competitor to R’s RStudio IDE. But, while a Jupyter Notebook with its multi-page interface feels right at home in the browser, I feel that as a single page application, Jupyter Lab would work better as a standalone desktop app without all the unwanted “chrome” that comes with the standard web browser. Luckily, the Chrome browser has an application mode that allows it to run with all of the toolbars and unnecessary UI removed. Using this mode will give you back a good deal of screen real estate and make Jupyter Lab feel more like a native application rather than a website running inside of your browser.

To check that the extension is working, open JupyterLab, launch an R notebook, and try inserting the operators by pressing Alt + -or Shift + Command + m, respectively. We will install the lightest possible version of LaTeX and it’s necessary packages as possible so that we can render Jupyter notebooks and R Markdown documents to html. Oct 08, 2019 If you don’t already have an existing Jupyter Notebook file, open the VS Code Command Palette with the shortcut CTRL + SHIFT + P (Windows) or Command + SHIFT + P (macOS), and run the “Python: Create Blank New Jupyter Notebook” command. If you already have a Jupyter Notebook file, it’s as simple as just opening that file in VS Code.

To use the application mode of Chrome with Jupyter Lab, you simply need to run the Jupyter Lab server with the --no-browser option to prevent it from popping open the application in your default browser.

Then, copy the URL printed out to the terminal (example below).

And, to open Chrome in application mode with the Jupyter Lab URL, you simply need to call it with the --app=<URL> option and pass the URL you just copied.

Jupyter Notebook Native Macos App

On a Mac, the command to do so would look like the following.

App

Once you run the command, you should see something like the following window pop up.

Notice the distinct lack of any and all toolbars. In fact, the only toolbar that shows up is the set of menus in the Jupyter Lab application.

Making the change permanent

Now, if running two commands with a few extra options every time you want to open up Jupyter Lab happens to be a bit too much for you, you’re in luck. You can make this behavior permanent by simply modifying the config to change the default browser for Jupyter Lab.

If you’ve modified your default Jupyter Notebook configuration in the past, you can simply open up the configuration file that already exists (~/.jupyter/jupyter_notebook_config.py) and add the following line to it.

However, if this is your first time ever modifying your Jupyter Notebook configuation, you’ll probably need to generate it first. You can do so with the following command.

After generating the config, simply open up the newly created file and add the browser config line from above. Once you’ve modified the config, you can simply call jupyter lab and the app will open up in a pristine window devoid of all the typical bells and whistles.

Found an error with my analysis or a bug in my code?

Macos Jupyter Notebook

Everything on this site is avaliable on GitHub. Head on over and submit an issue. You can also message me directly on Twitter.