nbdev
nbdev copied to clipboard
Function def input parameter comments causing a "Javascript error"
With the following in a code cell:
#| export
def XCORS_trim_to_time(
f:str,
start:str,
stop:str):
pass
and this in a following cell:
show_doc(XCORS_trim_to_time)
I get the correct expected output:
But when inserting parameter comments as described in the Nbdev video:
#| export
def XCORS_trim_to_time(
f:str, # Filename
start:str, # Start time.
stop:str): # Stop time.
pass
show_doc(XCORS_trim_to_time)
Below is a screencap of the resulting fail:
Hey @lidar532, this looks like an error because of some missing extensions in jupyterlab
(not something that is caused because of nbdev
). Can you install these extensions and try again?
With these extensions installed, you shouldn't get the javascript error again.