r/IPython • u/AdmiralBrainlag • Feb 12 '21
Jupyter as an app for macOS
Hey, I have been using Jupyter for quite a while and it always bugged me that there is no way to quickly launch a notebook or a lab server from Finder and be greeted with native tabbing and multi window support in a standalone application (with its own icon in the dock). There seem to be many apps out there that give access to quick preview and automated server start, however, I think some important features are lacking on all of them, so I created my own jupyter wrapper in Swift. I now use this app every day and do my work with it. Feel free to check it out on GitHub: https://github.com/FelixKratz/JupyterApp-mac and tell me your thoughts on how to optimise it further.
2
u/speedracer_o5o Feb 13 '21
This is a great implementation and works well, thanks for sharing. The big downside of a standalone app is the lack of all the standard features of a browser. For me these include AppleScript (for example to call nbconvert commands using hotkeys) and web clippers (for example to save a notebook copy to Evernote).
A good feature to work around this problem would be a command to open the notebook in the default browser. It would also be cool to easily switch between classic notebook and jupyterlab.
My own solution to this problem is an AppleScript to launch jupyter from the home folder and then open notebooks in Safari from anywhere inside the home folder. The script is saved as an app with a property list that lets it open *.ipynb files by double clicking. I'll be happy to share it if anyone is interested.
One thing that's missing I think is a quick look plugin for notebooks. jendas1 has plugin that no longer works for me, maybe because I'm in Big Sur. Is it possible to add quick view support to JupyterApp?
4
u/jjmmzz Feb 12 '21
Do you use Jupiter Lab? You might enjoy that as it makes using multiple tabs very easy.
1
u/GregoryEAllen Feb 12 '21
I use VS Code with notebooks, and am fairly happy with it.
1
u/cjcs Mar 30 '21
As an avid Jupyter user but total GitHub noob, any tips on how to actually install this on my machine?
1
u/awesomeprogramer Feb 12 '21
I'm not sure I understand the rationale here, isn't this just a one-tab browser? The right click open jupiter here thing is nice but then again you can do that without your app. You only need to edit the registry.