-
Notifications
You must be signed in to change notification settings - Fork 43
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
pip install should install kernel spec by default #3
Comments
As discussed, it can't install a kernelspec that uses sys.executable from the Python it's installed with, so any kernelspec you install with the package will be dependent on the PATH. I prefer to have two steps that work reliably than one step that's flaky. |
Of course it can. You can run arbitrary Python code in |
Recent versions of pip install by building and caching a wheel, which can be reused for subsequent installations. So you can only run arbitrary code by deliberately preventing it from ever building wheels. That's an ugly hack, and given the advantages of wheels in general, I don't want to do that. |
jupyter/jupyter_client#235 allows having a static
Personally, I'm interested in absolutely minimal steps to get a kernel working, so like the prospect of not needed any Apparently ipython/ipykernel#223 builds on that to create and install a kernel during
And the dir gets installed by adding it to |
It seems that using There are good reasons why this was done: when a package is installed using By analogy, using |
Although as far as I can tell, a static If your directory structure has Is there any way to specify the location of the kernel (e.g., inside some source directory, to allow for Py packaging) which does not rely on customizing the PATH ? |
Even if installing the kernel as part of the package installation were impossible (it isn't), the installation instructions in the README are incomplete since it says nowhere which other command to run to install the kernel. I had to additionally run Moreover, installing the kernel manually says:
|
Basic usage should be as basic as possible.
Therefore, I think that a basic installation of the kernel should also install the kernel spec file such that the kernel is directly ready to use. I don't think we should put additional burden on the user to run
python -m echo_kernel.install
to actually install the kernel spec.The text was updated successfully, but these errors were encountered: