jupyenv icon indicating copy to clipboard operation
jupyenv copied to clipboard

[Feature]: Single file template

Open MMesch opened this issue 3 years ago • 3 comments

What's missing?

I used to have a single file template for the old jupyterWith. I found this more convenient than adding a kernels folder with separate files when I just need 2-3 Python packages available. It would be great to have such a template available.

Possible solution

No response

Alternatives

No response

Additional context

No response

MMesch avatar Oct 25 '22 12:10 MMesch

I think this is already possible, using mkJupyterlab function. We should document it, but I wouldn't change the template (or add additional template).

garbas avatar Nov 02 '22 12:11 garbas

Yes, it is possible but we are talking about the template here. It doesn't reflect the use case and it took me quite a while to figure out how to set it up reading the code. As I said: For the default use case, I'd try to squeeze everything in one file making it as compact as possible. As I said, in an ideal world I'd simply say "I need jupyterWith with kernel X + packages A,B,C". The next thing to configure are probably frontend extensions. All the rest is bonus or a more advanced but less common use case.

MMesch avatar Nov 02 '22 13:11 MMesch

The previous version of jupyterWith followed the typical setup with a single flake which made writing https://github.com/collinarnett/stable-diffusion-nix very simple. I agree with @MMesch that there should be an example in a single flake so it makes migration from the previous version simple without intimate knowledge of nix or having to read the source of jupyterWith.

collinarnett avatar Nov 02 '22 14:11 collinarnett