mirror of
https://github.com/vale981/emacs-ipython-notebook
synced 2025-03-06 01:21:38 -05:00
Allow user to specify additional arguments to start the jupyter server.
See customizable variable `ein:jupyter-server-args'.
This commit is contained in:
parent
3fc73b98d8
commit
6b7e251658
1 changed files with 11 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue