From 1c5ecd6fc3c010595a324ef2fa2a2e23f9566503 2022-09-28 16:47:12 From: Petri Salminen Date: 2022-09-28 16:47:12 Subject: [PATCH] Allow spaces in file paths when using sphinx directive Closes: #11606 --- diff --git a/IPython/sphinxext/ipython_directive.py b/IPython/sphinxext/ipython_directive.py index 9e3c7b2..e55ba12 100644 --- a/IPython/sphinxext/ipython_directive.py +++ b/IPython/sphinxext/ipython_directive.py @@ -981,7 +981,7 @@ class IPythonDirective(Directive): self.shell.warning_is_error = warning_is_error # setup bookmark for saving figures directory - self.shell.process_input_line('bookmark ipy_savedir %s'%savefig_dir, + self.shell.process_input_line('bookmark ipy_savedir "%s"'%savefig_dir, store_history=False) self.shell.clear_cout()