How to open ipynb files in a browser by double-clicking

I used to have Canopy, and at that time I could just double-click on the ipynb files and open them in a browser. However, later I needed Anaconda, and as soon as I installed it, this function disappeared. Now I just want to be able to just double-click the ipynb files and the file will open in Firefox. Is it possible?

I read about it: nbopen

pip install nbopen python -m nbopen.install_win 

But that did not solve my problem. I appreciate any help.

+9
python browser ipython
source share
1 answer

Yes, it is possible. Running python -m nbopen.install_win installs the python -m nbopen.install_win executable in the Scripts folder of your anaconda directory. For me it:

 PS> (gcm nbopen).Path E:\Programs\anaconda\Scripts\nbopen.exe 

The first line gets the path to the nbopen command (using PowerShell). If you are not using PowerShell, you can find the conda directory by right-clicking on any (I) Python executable in the Start menu and see where it links.

You can then link the nbopen.exe file to the nbopen.exe nbopen.exe file:

  1. Right-click the .ipynb file.
  2. Click on properties
  3. Click the Change button next to "Open with:"
  4. Click Browse , go to the found path and select nbopen.exe .

Double-clicking on the .ipynb files now checks if the laptop server is working and opens the laptop. If the server is not running, it starts in the active directory.

+5
source share

All Articles