code-cells.el
Emacs utilities for code split into cells, including Jupyter notebooks (by astoff)
envrc
Emacs support for direnv which operates buffer-locally (by purcell)
Our great sponsors
code-cells.el | envrc | |
---|---|---|
9 | 18 | |
171 | 328 | |
- | - | |
6.4 | 7.9 | |
5 months ago | 15 days ago | |
Emacs Lisp | Emacs Lisp | |
GNU General Public License v3.0 only | - |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
code-cells.el
Posts with mentions or reviews of code-cells.el.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-12-09.
-
Emacs Advent Calendar 9: devdocs, code-cells, dREPL, etc.
code-cells: Utilities to work with “lightweight notebooks”, that is, source code which is split into cells by special %% comments. Also allows you to transparently edit Jupyter notebook (ipynb) files.
-
For Julia is there some thing like VSCode's python interactive window?
Emacs, Sublime Text 3 and Atom Pulsar can all do this with arbitrary Jupyter kernels with the emacs-jupyter/code-cells, helium and hydrogen packages, respectively.
-
Switched to VSCode... I miss Atom :(
I've been using code-cells together with emacs-jupyter, the combination of the two lets you work pretty much identically as you would in Atom with Hydrogen, Sublime with Helium, or VSCode with the Jupyter Python extension; you just delimit code cells with #%% and execute in a separate Jupyter REPL buffer. It does require some getting used to the key bindings though (or some tweaking to make it more similar to what you're used to).
-
I have reached Vim nirvana
I use a similar setup in Emacs with code-cells.el [1]. VSCode had a tendency to choke rendering large interactive graphs in-line, so if I was needing to view in a separate process anyways a little elisp turns "write last IPython output to a tempfile, open, move to workspace N" into a keybind.
[1] https://github.com/astoff/code-cells.el
-
IPython Notebook layer
Try https://github.com/astoff/code-cells.el
-
Different background in current Python cell
I use the simple but very convenient code-cells package to run python cells. E.g. with the Spyder IDE, the cell where the cursor is currently in has a different background color, and I'd love to have that in emacs. Would you have any idea on how to do that?
-
Very ameteurish Python coder, I need several features but don't need a full-fledged IDE. Can I find these as packages elsewhere?
For scripts with cells there are a couple of packages. Mine is this: https://github.com/astoff/code-cells.el
- Replacing Jupyter Notebook with Org Mode
- code-cells.el: Emacs utilities for code split into cells, including Jupyter notebooks
envrc
Posts with mentions or reviews of envrc.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-12-09.
-
Emacs Advent Calendar 9: devdocs, code-cells, dREPL, etc.
buffer-env: A pure-Elisp version of the direnv utility. Useful to make Emacs aware of Python virtualenvs (which, judging by the questions posted here, is unfortunately still a complication for a lot of people). Similar to (and inspired by) envrc, but doesn't require the direnv program.
-
Nix Survival Mode: macOS upgrades won't break Nix anymore
Yes, most Nix users employ https://direnv.net or the equivalent for your IDE of choice. Emacs for instance has https://github.com/purcell/envrc which set per-buffer variables.
-
Beginner question: how do I set up virtual environments in my Python buffer?
Also take a look at the envrc package. I think it handles multiple projects better.
-
How do YOU use your PKMS?
I further make my software projects so that when I click a link I go into an environment pre-loaded with their dependencies so dropping in/out of projects is always frictionless. I do this with the reproducibility guarantees of nix, along with glue like nix-direnv and envrc-mode to direnv.
-
Minimal approach for python devel environment with flake
In conjunction with installing direnv on your favorite text editor, it's a very hassle free experience. Everything happens automatically. If you use Emacs, i higly recommend envrc.el
-
Nix and envrc
Direnv is installed using the nix-direnv installation instructions under "Via configuration.nix in NixOS". I read some recommendations that envrc.el is a better alternative then direnv.el, and after some testing I have to agree. (envrc-global-mode) is enabled in my config. This works perfectly with a normal emacs instance.
-
Emacs + emacs-direnv + Nix + vterm does not just work
I don't use flake.nix, only shell.nix, though check if the envrc package works any better for you. https://github.com/purcell/envrc
-
Wrapping gcc with libraries
As an alternative to emacs-direnv, I’d recommend the “envrc” package.
-
Eglot appreciation post
btw, my main issue regarding tramp was the fact that I didn't have my environment generated by direnv, via the https://github.com/purcell/envrc package. I use direnv almost exclusively to activate my nix-shell, so I can access the exact software dependencies required by that directory of a project.
-
Is it possible to let overlay Emacs use locally configured Agda libraries inside nix-shell?
I'm not familiar with these tools too but I highly recommend to look at https://github.com/purcell/envrc. If you are not familiar with direnv I suggest to try it with nix-shell/flakes before.
What are some alternatives?
When comparing code-cells.el and envrc you can also consider the following projects:
jupyter - An interface to communicate with Jupyter kernels.
emacs-direnv - direnv integration for emacs
emacs-jupyter - emacs plug-in to run python code inside tex or markdown buffer
dotemacs
emacs-ipython-notebook - Jupyter notebook client in Emacs
direnv - unclutter your .profile
scimax - An emacs starterkit for scientists and engineers
lsp-bridge - A blazingly fast LSP client for Emacs
org-mode - org-mode fork
buffer-env - Buffer-local process environments for Emacs
ctrlf - ⌨️ Emacs finally learns how to ctrl+F.
stack - The Haskell Tool Stack