Skip to content

Commit

Permalink
Merge pull request #1400 from bamford/no_browser
Browse files Browse the repository at this point in the history
  • Loading branch information
jph00 authored Apr 28, 2024
2 parents bfae1c8 + 7808d81 commit db336df
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nbdev/quarto.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ def nbdev_preview(
path:str=None, # Path to notebooks
port:int=None, # The port on which to run preview
host:str=None, # The host on which to run preview
no_browser:bool=False, # Do not open a browser
n_workers:int=defaults.cpus, # Number of workers
**kwargs):
"Preview docs locally"
Expand All @@ -319,6 +320,7 @@ def nbdev_preview(
xtra = []
if port: xtra += ['--port', str(port)]
if host: xtra += ['--host', host]
if no_browser: xtra += ['--no-browser']

def _f(e):
res = _proc_file(Path(e.src_path), cache, path)
Expand Down
2 changes: 2 additions & 0 deletions nbs/api/14_quarto.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -606,6 +606,7 @@
" path:str=None, # Path to notebooks\n",
" port:int=None, # The port on which to run preview\n",
" host:str=None, # The host on which to run preview\n",
" no_browser:bool=False, # Do not open a browser\n",
" n_workers:int=defaults.cpus, # Number of workers\n",
" **kwargs):\n",
" \"Preview docs locally\"\n",
Expand All @@ -614,6 +615,7 @@
" xtra = []\n",
" if port: xtra += ['--port', str(port)]\n",
" if host: xtra += ['--host', host]\n",
" if no_browser: xtra += ['--no-browser']\n",
"\n",
" def _f(e):\n",
" res = _proc_file(Path(e.src_path), cache, path)\n",
Expand Down

0 comments on commit db336df

Please sign in to comment.