Closed michaelaye closed 4 years ago
Could you copy and paste content of the cell where you defined find_best_header
please :pray: ?
I need that for reproducing the error
I am pretty sure it's due to invalid Python in the cell, re-open this issue if it's not :)
sorry for the lack of reply. you are seeing everything, and the function works. What does the 1:10 in the error mean? I cannot deduce what it points to...
It means there is a syntax error in your code, line 1 column 10.
Actually I see the issue now, you need to comment out the isinstance?
cell
ah, all lines of code together, makes sense now, thanks. Ok, so it needs to be Python legal, not IPython legal, understood.
Yep that's exactly it! :+1:
doh, it actually says so in the error! I thought instance referred to some instance of an object in your code but it actually cites the broken line! DOH!
great extension btw, i love it!
heh, thanks for the kind words :smile:
Checklist prior to opening an issue
Describe the bug
Notebook throws error when trying to format:
Diagnostic commands Please attach the output of the following commands (please format them properly)
pip freeze | grep jupyter
jupyter labextension list
$ jupyter labextension list (py37) JupyterLab v2.1.4 Known labextensions: app dir: /Users/klay6683/miniconda3/envs/py37/share/jupyter/lab @jupyter-widgets/jupyterlab-manager v2.0.0 enabled OK @jupyterlab/geojson-extension v2.0.1 enabled OK @jupyterlab/git v0.20.0 enabled OK @jupyterlab/github v2.0.0 enabled OK @jupyterlab/toc v4.0.0 enabled OK @pyviz/jupyterlab_pyviz v1.0.4 enabled OK @ryantam626/jupyterlab_code_formatter v1.3.1 enabled OK jupyter-matplotlib v0.7.2 enabled OK nbdime-jupyterlab v2.0.0 enabled OKjupyter serverextension list
$ jupyter serverextension list (py37) config dir: /Users/klay6683/.jupyter jupyterlab_code_formatter enabledScreenshots