this post was submitted on 23 Nov 2023
1 points (100.0% liked)
Emacs
385 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 2 years 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 and the emacs direnv package. For this example, I quickly threw together a flake using a minimal template,
Then created a file
.envrcwith the contentsuse flakein the same directory as theflake.nixfile, and randirenv allowto 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 ...
I highly recommend nix-direnv along with the direnv emacs package. I do everything with flakes, so I'd have a
flake.nixthat defines a shell with the inputs I need, then I'd have a.envrcwith the contentsuse flakein the same directory. With those in place, you may need to rundirenv allowin that directory, and then you can edit a.orgfile 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
.orgfile I tested with,