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

jupyter-run console script entry point conflicts with jupyter_client entry point with the same name #179

Closed
cpcloud opened this issue Nov 17, 2021 · 3 comments

Comments

@cpcloud
Copy link

cpcloud commented Nov 17, 2021

nbclient installs a console_script entry point named jupyter-run, and it depends on jupyter_client which also installs its own console_script entry point named jupyter-run.

Which of these is invoked in an environment where nbclient is installed? I'd guess that the nbclient entry point gets invoked first, and just clobbers the jupyter-client entry point.

This causes problems when using package managers that detect bugs like these, and fail to install such packages.

Would it be possible to rename the nbclient entry point to something else that doesn't clobber another entry point?

@davidbrochart
Copy link
Member

davidbrochart commented Nov 17, 2021

Also see #173 (comment).
jupyter-execute was recently added to nbclient, then renamed jupyter-run for alignment with ipython's %run magic. We didn't know about jupyter_client's jupyter-run. Maybe we should just drop jupyter-run in nbclient and only keep jupyter-execute.

@cpcloud
Copy link
Author

cpcloud commented Nov 18, 2021

@davidbrochart That seems fine to me, though I admit I have little knowledge of exactly how these commands are used. I myself use nbclient indirectly through nbsphinx (which has nbclient as a transitive dependency from nbconvert).

@davidbrochart
Copy link
Member

@cpcloud I released 0.5.9 where jupyter run was removed.

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

2 participants