[Feature]: Single file template
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
I think this is already possible, using mkJupyterlab function. We should document it, but I wouldn't change the template (or add additional template).
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.
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.