-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Send code in cells #60
Comments
I think Jupyter notebook interfaces already handle this kind of workflow very well and there doesn't seem to be a lot of payoff from duplicating this. You may find eg https://github.com/millejoh/emacs-ipython-notebook useful. |
Thanks for the answer; I have used the notebooks in emacs using the package you point to, but found it unecessarily cumbersome, especially for short codes. I was just thinking of doing a extremely stripped down version of cells by having a simple syntax marker that lets me evaluate a bunch of lines without having to mark the region by moving the cursor around. But yes if that's not something you think is of interest fair enough! |
You might look at the literate programming support in emacs org-mode, it lists a contributed julia package already. https://orgmode.org/manual/Working-with-source-code.html |
the (defun org-babel-execute:julia (body params)
(interactive)
(setq
julia-repl-inferior-buffer-name-suffix
(intern (rest (assoc :session params))))
(julia-repl--send-string
(org-babel-expand-body:julia body params))) However I have also to redefine |
There is a library for Emacs that does this for Python source code: https://github.com/thisch/python-cell.el I actually took this code and modified it to work for Clojure instead. And it would probably also be easy to adapt it for Julia. Edit: I got it working for Julia with just very few changes :-) This is what I did:
I think it would be cool to have this kind of functionality being part of |
Would it be possible to evaluate (i.e., send code to repl) code as cells (like juno, or matlab-style), for instance whatever is between
##
or equivalent?This might be linked to implementing issues reported in #19 (optionnally together with #18), but there might be an additional job for regexp tracking the cell separation symbols (maybe even highlight cells, ideally...)
I was looking to implement this myself, but my elisp is not good at all. I'll give it a go but this might look horrible.
The text was updated successfully, but these errors were encountered: