Skip to content

Instantly share code, notes, and snippets.

@non-Jedi
Created December 29, 2021 18:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save non-Jedi/b3430420191a25d97b44bdb85a90499c to your computer and use it in GitHub Desktop.
Save non-Jedi/b3430420191a25d97b44bdb85a90499c to your computer and use it in GitHub Desktop.
;;; jupyter-config.el --- config emacs-jupyter -*- lexical-bindings:t -*-
;; hack since libzmq won't build properly on void for some reason
;(setenv "ZMQ_CFLAGS" "-I/usr/local/include")
;(setenv "ZMQ_LIBS" "-L/usr/local/lib")
(setenv "ZMQ_VERSION" "4.3.4")
(straight-use-package '(zmq :type git :host github
:repo "dzop/emacs-zmq"
:files (:defaults "Makefile" "src" "*.so")))
(straight-use-package '(jupyter :type git :host github
:repo "non-jedi/emacs-jupyter" :branch "devel"
:files (:defaults "Makefile" "widget.html" "js")))
(straight-use-package 'markdown-mode)
(with-eval-after-load 'org
(org-babel-do-load-languages
'org-babel-load-languages
'((jupyter . t))))
;; julia src block act like jupyter-julia blocks
(with-eval-after-load 'ob-jupyter
(setq-default org-babel-default-header-args:julia nil)
(org-babel-jupyter-override-src-block "julia")
(defalias 'org-babel-julia-initiate-session
'org-babel-jupyter-julia-initiate-session))
(provide 'jupyter-config)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment