Issue
Previously, I had Canopy installed and at that time, I could simply double click on ipynb files and open them into the browser. However, later I needed Anaconda and once I installed it, this feature was gone. Now I just want to be able to simply double click on ipynb files and the file gets open into the Firefox. Is it possible?
I read about this: nbopen
pip install nbopen
python -m nbopen.install_win
But it didn't solve my problem. I appreciate any help.
Solution
Yes, this is possible. Running python -m nbopen.install_win
installs the executable nbopen.exe
in the Scripts folder of your anaconda directory. For me this is:
PS> (gcm nbopen).Path
E:\Programs\anaconda\Scripts\nbopen.exe
The first line gets the path of the nbopen command (using PowerShell). If you are not using PowerShell you can find your conda directory by right-clicking on any (I)Python executable in your start menu and look at where it links to.
You can then associate the nbopen.exe
file with the .ipynb filetype:
- Right-click on a .ipynb file.
- Click on Properties
- Click on the Change button next to "Open With:"
- Click on Browse, browse to the path you found out and select
nbopen.exe
.
Double-clicking on .ipynb files now checks if a notebook server is running and opens the notebook. If no server is running, one is started in the active directory.
Answered By - m00am
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.