axil's blog
  • Home
  • Categories
  • Tags
  • Archives

How to open .ipynb file with one doubleclick on Windows

To be able to open .ipynb jupyter notebook files with a simple doubleclick on them run this in the command line:

pip install nbopen
python -m nbopen.install_win

This will reuse existing jupyter server if possible (=if it is already launched in the same dir).

Alternatively, you can associate ipynb with jupyter-notebook directly:

  1. Run this command in cmd.exe under administrator privileges:

    assoc .whl=jupyter& ftype jupyter=cmd.exe /c jupyter-notebook "%1"
    
  2. Alternatively, a slightly different line can be copied into a assoc_ipynb.bat file and executed through 'Run as administrator':

    assoc .whl=jupyter& ftype jupyter=cmd /c jupyter-notebook "%%1"
    

PS jupyter-notebook.exe is assumed to be in the PATH.

  • « Jump to next error in vim
  • git others »
Comments
comments powered by Disqus

Published

Jan 11, 2017

Last Updated

2019-12-16 00:41:49.246579+07:00

Category

software

Tags

  • ipynb 1
  • jupyter 1
  • notebook 1
  • python 4
  • Powered by Pelican. Theme: Elegant by Talha Mansoor