Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Double-clicking .ipynb file does not work with nbopen #75

Closed
mramadhito opened this issue Dec 29, 2020 · 7 comments
Closed

Double-clicking .ipynb file does not work with nbopen #75

mramadhito opened this issue Dec 29, 2020 · 7 comments

Comments

@mramadhito
Copy link

Hi,

Any time I open an .ipynb file after I set the default app to open with as nbopen.exe, this error in the command prompt is produced. How can I troubleshoot this?

image

Thanks,
Garda

@takluyver
Copy link
Owner

Does it show that message and open anyway, or is it also not working? That message is a warning, not an error, so it's not necessarily a problem.

The install_win.py script sets it up to open with pythonw.exe -m nbopen rather than nbopen.exe - that should prevent a console window appearing.

@mramadhito
Copy link
Author

So upon recording the command prompt again there is indeed an error message for a split second.

image

I ran the script above and it didn't change anything -- there's still an error and .ipynb files wouldn't open by double-clicking them. It looks like I'm missing a module from the error.

@takluyver
Copy link
Owner

Other people have been having similar errors to that - take a look at #61 and #69.

@mramadhito
Copy link
Author

I re-installed both Anaconda and Python and I followed the instructions in #69. It looks like jupyter notebook needs to be activated before the double-click works.

@Greedquest
Copy link

Greedquest commented Jan 4, 2021

@mramadhito have you tried what I suggested; change the registry key at

Computer\HKEY_CURRENT_USER\SOFTWARE\Classes\Jupyter.nbopen\shell\open\command

to

C:\Users\{USERNAME}\anaconda3\python.exe -m conda run -n base pythonw -m nbopen "%1"

(use whichever path to python the registry key currently references (i.e. switch USERNAME to your own))

@mramadhito
Copy link
Author

That works @Greedquest ! Thank you so much!

@Greedquest
Copy link

@mramadhito great, I hoped it would! Maybe leave a thumbs up or something on the original thread so people know in future:
#69 (comment)

I should say the conda run command is in beta atm so may break, but I just wanted to solve the problem now! Also a terminal window may flash but it's fine to close it if it stays open, I asked about a fix over on SO here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants