File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -311,6 +311,7 @@ def nbdev_preview(
311311 path :str = None , # Path to notebooks
312312 port :int = None , # The port on which to run preview
313313 host :str = None , # The host on which to run preview
314+ no_browser :bool = False , # Do not open a browser
314315 n_workers :int = defaults .cpus , # Number of workers
315316 ** kwargs ):
316317 "Preview docs locally"
@@ -319,6 +320,7 @@ def nbdev_preview(
319320 xtra = []
320321 if port : xtra += ['--port' , str (port )]
321322 if host : xtra += ['--host' , host ]
323+ if no_browser : xtra += ['--no-browser' ]
322324
323325 def _f (e ):
324326 res = _proc_file (Path (e .src_path ), cache , path )
Original file line number Diff line number Diff line change 606606 " path:str=None, # Path to notebooks\n " ,
607607 " port:int=None, # The port on which to run preview\n " ,
608608 " host:str=None, # The host on which to run preview\n " ,
609+ " no_browser:bool=False, # Do not open a browser\n " ,
609610 " n_workers:int=defaults.cpus, # Number of workers\n " ,
610611 " **kwargs):\n " ,
611612 " \" Preview docs locally\"\n " ,
614615 " xtra = []\n " ,
615616 " if port: xtra += ['--port', str(port)]\n " ,
616617 " if host: xtra += ['--host', host]\n " ,
618+ " if no_browser: xtra += ['--no-browser']\n " ,
617619 " \n " ,
618620 " def _f(e):\n " ,
619621 " res = _proc_file(Path(e.src_path), cache, path)\n " ,
You can’t perform that action at this time.
0 commit comments