Created
December 29, 2021 18:04
-
-
Save non-Jedi/b3430420191a25d97b44bdb85a90499c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; 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