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()