this post was submitted on 23 Nov 2023
1 points (100.0% liked)
Emacs
311 readers
1 users here now
A community for the timeless and infinitely powerful editor. Want to see what Emacs is capable of?!
Get Emacs
Rules
- Posts should be emacs related
- Be kind please
- Yes, we already know: Google results for "emacs" and "vi" link to each other. We good.
Emacs Resources
Emacs Tutorials
- Beginner’s Guide to Emacs
- Absolute Beginner's Guide to Emacs
- How to Learn Emacs: A Hand-drawn One-pager for Beginners
Useful Emacs configuration files and distributions
Quick pain-saver tip
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Is there somebody here using Nix(OS) who could teach me how to call this using a Python virtualenv where I deliberately setup pandas + seaborn before (in a shell)?
I highly recommend nix-direnv along with the direnv emacs package. I do everything with flakes, so I'd have a
flake.nix
that defines a shell with the inputs I need, then I'd have a.envrc
with the contentsuse flake
in the same directory. With those in place, you may need to rundirenv allow
in that directory, and then you can edit a.org
file in the same directory as the flake and the python environment will have what you need.Here's a flake I quickly made using a minimal template.
And then here's the
.org
file I tested with,I highly recommend nix-direnv and the emacs direnv package. For this example, I quickly threw together a flake using a minimal template,
Then created a file
.envrc
with the contentsuse flake
in the same directory as theflake.nix
file, and randirenv allow
to allow use of it. I then used this org mode file to test,Okay, it seems I'm not even halfway there to run NixOS on my own ...