Closed lukelbd closed 2 years ago
Here's the result of jupyter lab --debug
(too long to fit in one message):
Paste the output from running `jupyter troubleshoot` from the command line here. You may want to sanitize the paths in the output.``` $PATH: /home/ldavis/miniconda3/bin /home/ldavis/miniconda3/condabin /home/ldavis/ncparallel /home/ldavis/bin /home/ldavis/go/bin /home/ldavis/.deno/bin /home/ldavis/node/bin /home/ldavis/.iterm2 /home/ldavis/.local/bin /opt/pgi/linux86-64/19.10/bin /usr/lib64/mpich/bin /usr/lib64/qt-3.3/bin /usr/local/bin /usr/bin /usr/local/sbin /usr/sbin /home/ldavis/.fzf/bin sys.path: /home/ldavis/miniconda3/bin /home/ldavis/reanalysis-data /home/ldavis/cmip-data /home/ldavis/idealized /home/ldavis/drycore /home/ldavis/constraints /home/ldavis/transport /home/ldavis/timescales /home/ldavis/miniconda3/lib/python310.zip /home/ldavis/miniconda3/lib/python3.10 /home/ldavis/miniconda3/lib/python3.10/lib-dynload /home/ldavis/miniconda3/lib/python3.10/site-packages /home/ldavis/climopy sys.executable: /home/ldavis/miniconda3/bin/python sys.version: 3.10.0 | packaged by conda-forge | (default, Nov 20 2021, 02:25:18) [GCC 9.4.0] platform.platform(): Linux-3.10.0-957.27.2.el7.x86_64-x86_64-with-glibc2.17 which -a jupyter: /home/ldavis/miniconda3/bin/jupyter pip list: Package Version Editable project location --------------------------------- ------------------- ------------------------- alabaster 0.7.12 antlr4-python3-runtime 4.7.2 anyio 3.6.1 appdirs 1.4.4 argon2-cffi 21.3.0 argon2-cffi-bindings 21.2.0 asn1crypto 1.5.1 astroid 2.11.5 asttokens 2.0.5 async-generator 1.10 attrs 21.4.0 autopep8 1.6.0 Babel 2.9.1 backcall 0.2.0 backports.functools-lru-cache 1.6.4 beautifulsoup4 4.11.1 black 22.3.0 bleach 5.0.0 bokeh 2.4.3 brotlipy 0.7.0 Cartopy 0.20.2 cdo 1.5.2 certifi 2022.5.18.1 cf-units 3.0.1 cf-xarray 0.7.2 cffi 1.15.0 cfgv 3.3.1 cftime 1.6.0 charset-normalizer 2.0.12 click 8.1.3 climopy 0.1.0.post257+dirty /home/ldavis/climopy cloudpickle 2.0.0 colorama 0.4.4 conda 4.12.0 conda-package-handling 1.8.1 cryptography 37.0.2 cycler 0.11.0 cytoolz 0.11.2 dask 2022.4.1 dataclasses 0.8 debugpy 1.6.0 decorator 5.1.1 defusedxml 0.7.1 dill 0.3.5.1 distlib 0.3.4 distributed 2022.4.1 docker 5.0.3 docker-pycreds 0.4.0 docutils 0.17.1 entrypoints 0.4 esgf-pyclient 0.3.1 executing 0.8.3 fastjsonschema 2.15.3 filelock 3.7.0 flake8 4.0.1 flake8-unused-arguments 0.0.10 flit_core 3.7.1 fonttools 4.33.3 fsspec 2022.3.0 graphviz 0.16 greenlet 1.1.2 HeapDict 1.0.1 icecream 2.1.2 identify 2.5.1 idna 3.3 imagesize 1.3.0 importlib-metadata 4.11.3 importlib-resources 5.7.1 iniconfig 1.1.1 ipykernel 6.13.0 ipython 8.3.0 ipython-genutils 0.2.0 ipywidgets 7.7.0 isort 5.10.1 jedi 0.18.0 Jinja2 3.1.1 json5 0.9.5 jsonschema 4.4.0 jupyter 1.0.0 jupyter-client 7.3.0 jupyter-console 6.4.3 jupyter-contrib-core 0.3.3 jupyter-core 4.10.0 jupyter-highlight-selected-word 0.2.0 jupyter-latex-envs 1.4.6 jupyter-lsp 1.5.1 jupyter-nbextensions-configurator 0.4.1 jupyter-server 1.17.0 jupyterlab 3.4.2 jupyterlab-code-formatter 1.4.11 jupyterlab-lsp 3.10.1 jupyterlab-pygments 0.2.2 jupyterlab-server 2.14.0 jupyterlab-widgets 1.1.0 jupytext 1.13.8 kiwisolver 1.4.2 lazy-object-proxy 1.7.1 libmambapy 0.23.1 locket 1.0.0 lxml 4.8.0 lz4 4.0.0 Magics 1.5.6 mamba 0.23.1 markdown-it-py 2.1.0 MarkupSafe 2.1.1 matplotlib 3.5.2 matplotlib-inline 0.1.3 mccabe 0.6.1 mdit-py-plugins 0.3.0 mdurl 0.1.0 MetPy 1.3.0 mistune 0.8.4 more-itertools 8.12.0 msgpack 1.0.3 munkres 1.1.4 MyProxyClient 2.1.0 mypy-extensions 0.4.3 nb-conda-kernels 2.3.1 nbclassic 0.3.7 nbclient 0.6.0 nbconvert 6.5.0 nbformat 5.3.0 nbstripout 0.5.0 nco 1.0.0 nest-asyncio 1.5.5 netCDF4 1.5.8 nodeenv 1.6.0 notebook 6.4.11 notebook-shim 0.1.0 numpy 1.22.3 olefile 0.46 packaging 21.3 pandas 1.4.2 pandocfilters 1.5.0 parso 0.8.3 partd 1.2.0 pathspec 0.9.0 pexpect 4.8.0 pickleshare 0.7.5 Pillow 9.1.1 Pint 0.19.2 pip 22.0.4 platformdirs 2.5.1 pluggy 1.0.0 pooch 1.6.0 pre-commit 2.19.0 prometheus-client 0.14.1 prompt-toolkit 3.0.29 proplot 0.9.5.post301 psutil 5.9.0 ptyprocess 0.7.0 pure-eval 0.2.2 py 1.11.0 pycodestyle 2.8.0 pycosat 0.6.3 pycparser 2.21 pydocstyle 6.1.1 pydot 1.4.2 pyepsg 0.4.0 pyflakes 2.4.0 Pygments 2.12.0 pyke 1.1.1 pylint 2.13.9 pynvim 0.4.3 pyOpenSSL 22.0.0 pyparsing 3.0.8 pyproj 3.3.0 PyQt5 5.12.3 PyQt5_sip 4.19.18 PyQtChart 5.12 PyQtWebEngine 5.12.1 pyrsistent 0.18.1 pyshp 2.2.0 PySocks 1.7.1 pytest 7.1.2 python-dateutil 2.8.2 python-lsp-jsonrpc 1.0.0 python-lsp-server 1.4.1 pytz 2022.1 PyYAML 6.0 pyzmq 23.0.0 qtconsole 5.3.0 QtPy 2.0.1 regex 2022.4.24 requests 2.27.1 requests-cache 0.4.13 rope 1.1.1 ruamel-yaml-conda 0.15.80 scipy 1.8.0 Send2Trash 1.8.0 setuptools 62.3.2 Shapely 1.8.2 simplejson 3.17.6 six 1.16.0 sniffio 1.2.0 snowballstemmer 2.2.0 sortedcontainers 2.4.0 soupsieve 2.3.1 Sphinx 4.5.0 sphinxcontrib-applehelp 1.0.2 sphinxcontrib-devhelp 1.0.2 sphinxcontrib-htmlhelp 2.0.0 sphinxcontrib-jsmath 1.0.1 sphinxcontrib-qthelp 1.0.3 sphinxcontrib-serializinghtml 1.1.5 stack-data 0.2.0 tblib 1.7.0 terminado 0.15.0 testpath 0.6.0 tinycss2 1.1.1 toml 0.10.2 tomli 2.0.1 toolz 0.11.2 tornado 6.1 tqdm 4.64.0 traitlets 5.1.1 typed-ast 1.5.3 typing_extensions 4.2.0 ujson 5.3.0 ukkonen 1.0.1 unicodedata2 14.0.0 urllib3 1.26.9 virtualenv 20.14.1 wcwidth 0.2.5 webencodings 0.5.1 WebOb 1.8.7 websocket-client 1.3.2 wheel 0.37.1 widgetsnbextension 3.6.0 wrapt 1.14.1 xarray 2022.3.0 yapf 0.32.0 zict 2.2.0 zipp 3.8.0 conda list: # packages in environment at /home/ldavis/miniconda3: # # Name Version Build Channel _go_select 2.3.0 cgo conda-forge _libgcc_mutex 0.1 conda_forge conda-forge _openmp_mutex 4.5 2_gnu conda-forge _r-mutex 1.0.1 anacondar_1 conda-forge alabaster 0.7.12 py_0 conda-forge alsa-lib 1.2.3 h516909a_0 conda-forge antlr-python-runtime 4.7.2 py310hff52083_1003 conda-forge anyio 3.6.1 py310hff52083_0 conda-forge appdirs 1.4.4 pyh9f0ad1d_0 conda-forge argon2-cffi 21.3.0 pyhd8ed1ab_0 conda-forge argon2-cffi-bindings 21.2.0 py310h5764c6d_2 conda-forge asn1crypto 1.5.1 pyhd8ed1ab_0 conda-forge astroid 2.11.5 py310hff52083_0 conda-forge asttokens 2.0.5 pyhd8ed1ab_0 conda-forge async_generator 1.10 py_0 conda-forge atk 2.36.0 ha770c72_4 conda-forge atk-1.0 2.36.0 h3371d22_4 conda-forge attrs 21.4.0 pyhd8ed1ab_0 conda-forge autopep8 1.6.0 pyhd8ed1ab_1 conda-forge babel 2.9.1 pyh44b312d_0 conda-forge backcall 0.2.0 pyh9f0ad1d_0 conda-forge backports 1.0 py_2 conda-forge backports.functools_lru_cache 1.6.4 pyhd8ed1ab_0 conda-forge beautifulsoup4 4.11.1 pyha770c72_0 conda-forge binutils_impl_linux-64 2.36.1 h193b22a_2 conda-forge binutils_linux-64 2.36 hf3e587d_10 conda-forge black 22.3.0 pyhd8ed1ab_0 conda-forge bleach 5.0.0 pyhd8ed1ab_0 conda-forge bokeh 2.4.3 py310hff52083_0 conda-forge boost-cpp 1.74.0 h312852a_4 conda-forge brotli 1.0.9 h166bdaf_7 conda-forge brotli-bin 1.0.9 h166bdaf_7 conda-forge brotlipy 0.7.0 py310h5764c6d_1004 conda-forge bwidget 1.9.14 ha770c72_1 conda-forge bzip2 1.0.8 h7f98852_4 conda-forge c-ares 1.18.1 h7f98852_0 conda-forge ca-certificates 2022.5.18.1 ha878542_0 conda-forge cairo 1.16.0 h6cf1ce9_1008 conda-forge cartopy 0.20.2 py310he9c7799_3 conda-forge cdo 1.5.2 pypi_0 pypi certifi 2022.5.18.1 py310hff52083_0 conda-forge cf-units 3.0.1 py310h96516ba_2 conda-forge cf_xarray 0.7.2 pyhd8ed1ab_0 conda-forge cffi 1.15.0 py310h0fdd8cc_0 conda-forge cfgv 3.3.1 pyhd8ed1ab_0 conda-forge cftime 1.6.0 py310hde88566_1 conda-forge charset-normalizer 2.0.12 pyhd8ed1ab_0 conda-forge click 8.1.3 py310hff52083_0 conda-forge climopy 0.1.0.post257+dirty dev_0
I am no longer experiencing this issue after fixing a missing parentheses... but could have sworn this issue was showing up even in the presence of valid/executable code cells... may reopen in the future.
Description
I keep getting bizarre pycodestyle errors highlighting every single line in long notebooks (see below screenshots). It seems the linter thinks these lines are inside function calls. I suspect the lines passed to the linter are not being parsed incorrectly.
Reproduce
Unfortunately I'm not sure how to reproduce this error. It seems to happen in larger notebooks with long code cells.
Expected behavior
The correct error messages.
Context
Required: installed server extensions
``` config dir: /home/ldavis/.jupyter jupyter_nbextensions_configurator enabled - Validating... jupyter_nbextensions_configurator 0.4.1 OK jupyterlab_code_formatter enabled - Validating... jupyterlab_code_formatter 1.4.11 OK config dir: /home/ldavis/miniconda3/etc/jupyter jupyter_lsp enabled - Validating... jupyter_lsp 1.5.1 OK jupyterlab enabled - Validating... jupyterlab 3.4.2 OK jupyterlab_code_formatter enabled - Validating... jupyterlab_code_formatter 1.4.11 OK jupytext enabled - Validating... jupytext 1.13.8 OK jupyter_nbextensions_configurator disabled - Validating... jupyter_nbextensions_configurator 0.4.1 OK ```Required: installed lab extensions
``` JupyterLab v3.4.2 /home/ldavis/miniconda3/share/jupyter/labextensions jupyterlab_pygments v0.2.2 enabled OK (python, jupyterlab_pygments) jupyterlab-jupytext v1.3.8+dev enabled OK (python, jupytext) @jupyter-widgets/jupyterlab-manager v3.1.0 enabled OK (python, jupyterlab_widgets) @ryantam626/jupyterlab_code_formatter v1.4.11 enabled OK (python, jupyterlab-code-formatter) @krassowski/jupyterlab-lsp v3.10.1 enabled OK (python, jupyterlab-lsp) Other labextensions (built into JupyterLab) app dir: /home/ldavis/miniconda3/share/jupyter/lab Uninstalled core extensions: @axlair/jupyterlab_vim jupyterlab-vimrc ```Command Line Output
``` (base) monde[0]:timescales$ jupyter lab --debug --no-browser [D 2022-05-31 10:25:34.610 ServerApp] Searching ['/home/ldavis/timescales', '/home/ldavis/.jupyter', '/home/ldavis/.local/etc/jupyter', '/home/ldavis/miniconda3/etc/jupyter', '/usr/local/etc/jupyter', '/etc/jupyter'] for config files [D 2022-05-31 10:25:34.611 ServerApp] Looking for jupyter_config in /etc/jupyter [D 2022-05-31 10:25:34.611 ServerApp] Looking for jupyter_config in /usr/local/etc/jupyter [D 2022-05-31 10:25:34.611 ServerApp] Looking for jupyter_config in /home/ldavis/miniconda3/etc/jupyter [D 2022-05-31 10:25:34.611 ServerApp] Looking for jupyter_config in /home/ldavis/.local/etc/jupyter [D 2022-05-31 10:25:34.611 ServerApp] Looking for jupyter_config in /home/ldavis/.jupyter [D 2022-05-31 10:25:34.612 ServerApp] Loaded config file: /home/ldavis/.jupyter/jupyter_config.json [D 2022-05-31 10:25:34.612 ServerApp] Looking for jupyter_config in /home/ldavis/timescales [D 2022-05-31 10:25:34.613 ServerApp] Looking for jupyter_server_config in /etc/jupyter [D 2022-05-31 10:25:34.613 ServerApp] Looking for jupyter_server_config in /usr/local/etc/jupyter [D 2022-05-31 10:25:34.613 ServerApp] Looking for jupyter_server_config in /home/ldavis/miniconda3/etc/jupyter [D 2022-05-31 10:25:34.613 ServerApp] Looking for jupyter_server_config in /home/ldavis/.local/etc/jupyter [D 2022-05-31 10:25:34.613 ServerApp] Looking for jupyter_server_config in /home/ldavis/.jupyter [D 2022-05-31 10:25:34.613 ServerApp] Looking for jupyter_server_config in /home/ldavis/timescales [D 2022-05-31 10:25:34.616 ServerApp] Paths used for configuration of jupyter_server_config: /etc/jupyter/jupyter_server_config.json [D 2022-05-31 10:25:34.617 ServerApp] Paths used for configuration of jupyter_server_config: /usr/local/etc/jupyter/jupyter_server_config.json [D 2022-05-31 10:25:34.617 ServerApp] Paths used for configuration of jupyter_server_config: /home/ldavis/miniconda3/etc/jupyter/jupyter_server_config.d/jupyter-lsp-jupyter-server.json /home/ldavis/miniconda3/etc/jupyter/jupyter_server_config.d/jupyterlab.json /home/ldavis/miniconda3/etc/jupyter/jupyter_server_config.d/jupyterlab_code_formatter.json /home/ldavis/miniconda3/etc/jupyter/jupyter_server_config.d/jupytext.json /home/ldavis/miniconda3/etc/jupyter/jupyter_server_config.d/nbclassic.json /home/ldavis/miniconda3/etc/jupyter/jupyter_server_config.d/notebook_shim.json /home/ldavis/miniconda3/etc/jupyter/jupyter_server_config.json [D 2022-05-31 10:25:34.618 ServerApp] Paths used for configuration of jupyter_server_config: /home/ldavis/.local/etc/jupyter/jupyter_server_config.json [D 2022-05-31 10:25:34.619 ServerApp] Paths used for configuration of jupyter_server_config: /home/ldavis/.jupyter/jupyter_server_config.json [D 2022-05-31 10:25:34.619 ServerApp] Paths used for configuration of jupyter_server_config: /home/ldavis/timescales/jupyter_server_config.json [I 2022-05-31 10:25:34.751 ServerApp] jupyter_lsp | extension was successfully linked. [D 2022-05-31 10:25:34.774 LabApp] Config changed: {'CondaKernelSpecManager': {'kernelspec_path': '--user'}, 'NotebookApp': {}, 'ServerApp': {'log_level': 'DEBUG', 'open_browser': False, 'jpserver_extensions':