fastai / nbdev

Create delightful software with Jupyter Notebooks
https://nbdev.fast.ai/
Apache License 2.0
4.9k stars 487 forks source link

Function def input parameter comments causing a "Javascript error" #1353

Open lidar532 opened 1 year ago

lidar532 commented 1 year ago

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

deven-gqc commented 1 year ago

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