From 6b7e2516589f86b095430aa95100795a5930cf69 Mon Sep 17 00:00:00 2001 From: John Miller Date: Mon, 20 Feb 2017 18:07:17 -0600 Subject: [PATCH] Allow user to specify additional arguments to start the jupyter server. See customizable variable `ein:jupyter-server-args'. --- lisp/ein-jupyter.el | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/lisp/ein-jupyter.el b/lisp/ein-jupyter.el index 4ed2c0a..aa51ee3 100644 --- a/lisp/ein-jupyter.el +++ b/lisp/ein-jupyter.el @@ -39,6 +39,12 @@ the jupyter command, you can set it here for future calls to :group 'ein :type '(file)) +(defcustom ein:jupyter-server-args nil + "Add any additional command line options you wish to include +with the call to the jupyter notebook." + :group 'ein + :type '(repeat string)) + (defcustom ein:jupyter-default-notebook-directory nil "If you are tired of always being queried for the location of the notebook directory, you can set it here for future calls to @@ -53,9 +59,11 @@ the notebook directory, you can set it here for future calls to (defvar *ein:last-jupyter-directory* nil) (defun ein:jupyter-server--cmd (path dir) - (list path - "notebook" - (format "--notebook-dir=%s" dir))) + (append (list path + "notebook" + (format "--notebook-dir=%s" dir)) + ein:jupyter-server-args)) + ;;;###autoload (defun ein:jupyter-server-start (server-path server-directory)