Skip to content

Commit db336df

Browse files
authored
Merge pull request #1400 from bamford/no_browser
2 parents bfae1c8 + 7808d81 commit db336df

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

nbdev/quarto.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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)

nbs/api/14_quarto.ipynb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -606,6 +606,7 @@
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",
@@ -614,6 +615,7 @@
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",

0 commit comments

Comments
 (0)