You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a mention to the documentation for this package to get around a weird issue with Intellij/PyCharm not correctly seeing the kernels in the pixi environments:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
TL;DR:
Add a mention to the documentation for this package to get around a weird issue with Intellij/PyCharm not correctly seeing the kernels in the pixi environments:
https://github.com/anaconda/nb_conda_kernels
Explanation
I just started using pixi and the first thing I attempted to do was convert my existing conda environment/project to using pixi.
That was completely painless by using:
And then I added the pixi pycharm integration from here: https://pixi.sh/v0.27.1/ide_integration/pycharm/
And then I tried firing up a Jupyter Notebook after pointing Intellij at the new environment and conda shim.
It failed to run the first cell with this:
Strangely though, the first cell imports pandas and duckdb:
What is really odd about this though is that a normal python file was able to import and use the duckdb package just fine.
I even confirmed that it could be used in the python interpreter using
pixi shell
and thenpython
and alsopixi run python
.After a lot of sleuthing, I eventually found this SO answer:
https://stackoverflow.com/a/44786736
Which led me to adding this package:
https://github.com/anaconda/nb_conda_kernels
And now everything is happy and the kernels are showing inside Intellij:
Beta Was this translation helpful? Give feedback.
All reactions