jupyenv icon indicating copy to clipboard operation
jupyenv copied to clipboard

[Feature]: Python kernel without poetry

Open MMesch opened this issue 3 years ago • 3 comments

What's missing?

I'm looking for a way to add python packages without poetry. Is this possible?

Possible solution

Expand the python kernel to accept poetry or non-poetry packages.

Alternatives

Have two separate Python kernels available. One for poetry and another without.

Additional context

No response

MMesch avatar Oct 25 '22 12:10 MMesch

poetry2nix support extraPackages argument which can be used to add python packages (those packaged with Nix).

But last time we tried it we hit a bug, which led us to another bug, so we never really confirmed that this works.

The idea was that initial template would show how to add more python packages (those already existing in nixpkgs).

garbas avatar Nov 02 '22 12:11 garbas

I personally think not supporting pure nix kernel definitions is very limiting for those already familiar with nix ecosystem. While poetry might be very popular I personally use nix exactly to avoid dealing with poetry in the first place because it is an inferior tool imo.

I propose clarifying whether extraPackages works as of now and making it very clear in the docs that jupyenv currently does not aim to support nix-defined kernels but, possibly, allows for bringing in already nix-packaged python packages via extraPackages (if this is the case). If the latter is supported there should be an example in the docs and a test case.

Happy to help with some of the above.

1pakch avatar Apr 26 '23 07:04 1pakch

see https://github.com/tweag/jupyenv/pull/524/commits/48decf0efce2208487a7db06e987a8dffc74c146

GTrunSec avatar Oct 03 '23 01:10 GTrunSec