-
Notifications
You must be signed in to change notification settings - Fork 2
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
uncorrect error of missing ipykernel in dependencies #35
Comments
Hi @aqc-carlodri, thanks for the bug report. In a terminal, could you please navigate to the folder where you stored your notebook, run Note that |
Thanks for the quick reply. Here is the output of the command you asked to run in the notebook folder (I just patched two identical paths with {
"platform": "win-64",
"virtual_packages": [
"__win=0=0",
"__cuda=12.4=0",
"__archspec=1=skylake"
],
"version": "0.38.0",
"cache_dir": "D:\\.pixi\\cache",
"cache_size": null,
"auth_dir": "C:\\Users\\carlo.dri\\.rattler\\credentials.json",
"global_info": {
"bin_dir": "D:\\.pixi\\bin",
"env_dir": "D:\\.pixi\\envs",
"manifest": "D:\\.pixi\\manifests\\pixi-global.toml"
},
"project_info": {
"name": "ir_image_processing",
"manifest_path": "D:\\Documents\\...\\...\\ir_image_processing\\pixi.toml",
"last_updated": "27-11-2024 08:44:31",
"pixi_folder_size": null,
"version": "0.1.0"
},
"environments_info": [
{
"name": "default",
"features": [
"default"
],
"solve_group": null,
"environment_size": null,
"dependencies": [
"ipykernel"
],
"pypi_dependencies": [],
"platforms": [
"win-64"
],
"tasks": [],
"channels": [
"conda-forge"
],
"prefix": "D:\\Documents\\...\\...\\ir_image_processing\\.pixi\\envs\\default"
}
],
"config_locations": []
} And yes, I can confirm the [project]
channels = ["conda-forge"]
description = "Add a short description here"
name = "ir_image_processing"
platforms = ["win-64"]
version = "0.1.0"
[tasks]
[dependencies]
ipykernel = ">=6.29.5,<7" |
Thanks for the quick reply. This all looks fine to me.
I'm betting on the first option though. If you could go inside the |
The JupyterLab log line you are requesting says this:
which is the same folder I redacted in the Regarding your last point, the output of
which is always the same path as above. Thanks you for your time. |
So, I digged a little bit and I think the problem is in the environments=[Environment(name='default', dependencies=['jupyterlab', 'pixi-kernel', 'python'], pypi_dependencies=[], prefix='D:\\Documents\\jupyterlab-pixi\\.pixi\\envs\\default')] project=Project(manifest_path='D:\\Documents\\jupyterlab-pixi\\pixi.toml') which seems to be running the Digging into a fix now... 🙂 Thoughts:
|
So I think this is something related to where The kernel now starts but I get this warning in the JupyterLab logs:
|
Hmm... it is working for you now but it is probably using the environment in |
no, the redacted paths are all like Oh yes, and |
And yes, I can confirm that now in the notebook I can't use the dependencies from my notebook folder project. |
I think I am having the same issue, and I think I understand the solution. When JupyterLab itself is run using When pixi-kernel runs When asking about the best way around this in the pixi Discord, I was happy to learn that the next release of pixi will change the precedence order, so that cwd and parent directories are checked before This should enable the use of pixi-kernel within a Jupyter server that was itself run using pixi. |
Wow @danielballan, yes that clarifies the problem and the solution perspective! Thanks a ton I was getting crazy trying to figure this out. |
Sure thing! @renan-r-santos Would you welcome a PR that adds the manifest path (as extracted from |
Thanks a lot, both of you! Not knowing why this was happening was bugging me so much. We use this package at work and we don't get this issue there. I finally figured out why: I unset the @danielballan Yes, adding useful info to the error messages is always welcome. Regardless, I'm inclined to make a patch release later today or tomorrow removing |
That makes sense to me. I going to log off for US Thanksgiving, so if you add more detail before Monday, go for it! Otherwise I will sling a PR when I get back. Thanks for this useful project. |
I released |
Thank you for the quick fix! I have triggered the update PR on the conda-forge feedstock. As I said there, you can add me as maintainer with my other username @carlodri |
Hi, and thanks for you effort in maintaining this package!
I keep having the following issue. I have a pixi project where I have installed only
jupyterlab
(4.3.1) andpixi-kernel
(0.5.1) with Python 3.12.7. Then I have a folder where I want to store a notebook, where onlyipykernel
(6.29.5 ) is installed, always with Python 3.12.7.After starting jupyterlab, if I navigate to the folder with my notebook and I try to start the (pixi) kernel I always get the following error:
whereas the
ipykernel
package is there....Can you help me diagnose the issue?
Here follows the output on the jupyterlab console.
Full jupyterlab error output
The text was updated successfully, but these errors were encountered: