Working setup for emacs org-mode

I am confused when reading posts that used ob-emacs or ESS. Could someone post a .emacs setup that works? The idea is to write Julia codes in emacs org-mode and run the codes there.


I use and I really like it! I don’t have my config handy, but I can post it later.


Thank you! Yes, please!

Here you go:

(require 'package)
(setq package-enable-at-startup nil)

(setq package-archives
      '(("GNU ELPA"     . "")
        ("MELPA Stable" . "")
        ("MELPA"        . ""))
      '(("MELPA Stable" . 10)
        ("GNU ELPA"     . 5)
        ("MELPA"        . 0)))


(unless (package-installed-p 'use-package)
	(package-install 'use-package))

  (require 'use-package))

(use-package jupyter
  :ensure t
  (require 'jupyter-julia))

(setq org-src-fontify-natively t
      org-src-tab-acts-natively t
      org-confirm-babel-evaluate nil
      org-edit-src-content-indentation 0)

 '((emacs-lisp . t)
   (jupyter . t)))

(add-to-list 'org-structure-template-alist
	     '("j" "#+BEGIN_SRC jupyter-julia :session jl

(setq org-babel-default-header-args:jupyter-julia '((:async . "yes")
						    (:exports . "both")
						    (:results . "scalar")))

This should be sufficient to have a pretty pleasant out-of-the-box Jupyter Julia experience in org mode and should auto-install the requisite packages.

I set it so that typing <j and then hitting the tab button will make a

#+BEGIN_SRC jupyter-julia :session jl


block where you can then write julia code and evaluate it C-c C-c.


Thank you very very much! Sorry for the late response!