nbdev icon indicating copy to clipboard operation
nbdev copied to clipboard

Function def input parameter comments causing a "Javascript error"

Open lidar532 opened this issue 1 year ago • 1 comments

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: image

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: image

lidar532 avatar Jun 13 '23 18:06 lidar532

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?

image

With these extensions installed, you shouldn't get the javascript error again. image

deven-gqc avatar Jun 22 '23 16:06 deven-gqc