code-cells.el
jupyter
Our great sponsors
code-cells.el | jupyter | |
---|---|---|
9 | 31 | |
171 | 896 | |
- | 2.2% | |
6.4 | 7.6 | |
5 months ago | 12 days ago | |
Emacs Lisp | Emacs Lisp | |
GNU General Public License v3.0 only | GNU General Public License v3.0 only |
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
-
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
jupyter
-
IPython and :results output is too verbose
For ipython, you'd better use some more specialized package like https://github.com/emacs-jupyter/jupyter, not the generic python support.
- Ask HN: Why don't other languages have Jupyter style notebooks?
-
Does anyone have a solution for displaying plotly plots in org mode?
I have seen this thread, but I don't want to have to put an extra source block to set the renderers in every org file where I use plotly. Does anyone have a good solution for the moment? Any help is appreciated.
-
Bounty on ein package startup times
Should no one take you up on the bounty, I suggest trying emacs-jupyter instead. I've had better luck with it in the past.
-
Replace Jupyter with Emacs Org Mode: Unleash the Power of Literate Programming
For anybody following along with the examples, a few points/tips that might help newcomers:
1. (By default) before you can use Python source blocks, you need to have the Org Babel Python functionality loaded which is most easily done by evaluating the elisp (require 'ob-babel), but there are other ways also [1].
2. The first example, which uses the print function, will not output anything because the Python blocks by default are evaluated inside a function body and the return value is returned to Org [2]. To return the printed output instead, you need the header argument ":results output". There is an example of this syntax later in TFA.
3. If you are serious about replacing (or complementing) other Jupyter tools with Org mode, you might want to eventually look at emacs-jupyter [3], which provides a more advanced handling of outputs and also supports other (i.e. non-Python) kernels.
Also, I don't think I've ever seen anything like the debugging example and when I tried to replicate it out of curiosity, the block simply failed with a bdb.BdbQuit exception. Am I missing something? What is supposed to happen?
[1] https://orgmode.org/manual/Languages.html
[2] https://orgmode.org/worg/org-contrib/babel/languages/ob-doc-...
[3] https://github.com/nnicandro/emacs-jupyter
- Replace Jupyter Notebook With Emacs Org Mode
-
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.
-
Is org-mode an adequate replacement for Jupyter Notebook/rmarkdown for literate programming?
You can use emacs as a jupyter client if that would help in your case https://github.com/nnicandro/emacs-jupyter
-
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).
-
Using emacs as a study environment
For writing source blocks: https://github.com/nnicandro/emacs-jupyter
What are some alternatives?
emacs-jupyter - emacs plug-in to run python code inside tex or markdown buffer
jupytext - Jupyter Notebooks as Markdown Documents, Julia, Python or R scripts
emacs-ipython-notebook - Jupyter notebook client in Emacs
lsp-mode - Emacs client/library for the Language Server Protocol
scimax - An emacs starterkit for scientists and engineers
vim-ipython-cell - Seamlessly run Python code in IPython from Vim
org-mode - org-mode fork
ctrlf - ⌨️ Emacs finally learns how to ctrl+F.
lsp-julia
dotfiles - My dotfiles
nbterm - Jupyter Notebooks in the terminal.