|
|
|
|
|
by radarsat1
2332 days ago
|
|
I haven't even gotten into org mode, I just edit Python using emacs and it works great. I can evaluate parts of the code and jump to the interpreter when needed. I keep a matplotlib window open with plt.ion() when running locally, or use plt.savefig() when running remotely and have a qiv window open that automatically detects new images. Works great. The only thing I would like is to be able to use the Python interpreter _within_ the context of a function sometimes, it's annoying when an error occurs inside a function and I can't access the local variables. I like jupyter notebooks too, but one of the things stopping me is that I can't use emacs features for editing ;) |
|
Finally, you can:
The downside of this is there's no history or autocomplete by default.I have a custom function `embed()` [1] that calls `code.interact()`, but with history and autocomplete configured. This is the closest I got it to looking like a regular Python interpreter at an arbitrary place in the code.
[1] https://pastebin.com/WDuheBfV