mlshapiro / jupyterlab-flake8

Jupyterlab python linter for notebooks and text files using flake8
BSD 3-Clause "New" or "Revised" License
111 stars 10 forks source link

Linter Not Starting in Jupyter Lab #41

Open CharlesARoy opened 3 years ago

CharlesARoy commented 3 years ago

I'm having a hard time getting started with Jupyterlab-flake8. I followed the installation instructions to the letter but the linter isn't starting up despite being toggled on. Flake8 linting works in Atom with linter-flake8, so I don't think it's a flake8-related issue.

Conda packages: conda list packages in environment at /Users/.../anaconda3:

Name                Version                   Build  Channel
appnope                   0.1.2            py36h79c6626_0    conda-forge
argon2-cffi               20.1.0           py36h6941dd6_2    conda-forge
async_generator           1.10                       py_0    conda-forge
attrs                     20.3.0             pyhd3deb0d_0    conda-forge
backcall                  0.2.0              pyh9f0ad1d_0    conda-forge
backports                 1.0                        py_2    conda-forge
backports.functools_lru_cache 1.6.1                      py_0    conda-forge
bash-kernel               0.7.2                    pypi_0    pypi
beautifulsoup4            4.9.3              pyhb0f4dca_0    conda-forge
bedtools                  2.29.2               h37cfd92_0    bioconda
bleach                    1.4.2                    py36_0    bioconda
brotlipy                  0.7.0           py36ha3de816_1001    conda-forge
bzip2                     1.0.8                hc929b4f_4    conda-forge
c-ares                    1.11.0                        0    bioconda
ca-certificates           2020.12.5            h033912b_0    conda-forge
certifi                   2020.12.5        py36h79c6626_0    conda-forge
cffi                      1.14.4           py36hfe0777f_1    conda-forge
chardet                   4.0.0            py36h79c6626_0    conda-forge
click                     7.1.2              pyh9f0ad1d_0    conda-forge
conda                     4.9.2            py36h79c6626_0    conda-forge
conda-build               3.20.5           py36h2432673_0    conda-forge
conda-env                 2.6.0                         1    conda-forge
conda-package-handling    1.7.2            py36ha3de816_0    conda-forge
conda-verify              3.1.1           py36h9f0ad1d_1002    conda-forge
cryptography              3.3.1            py36hd858a44_0    conda-forge
curl                      7.71.1               hcb81553_8    conda-forge
cycler                    0.10.0                     py_2    conda-forge
dbus                      1.13.6               h0c50699_1    conda-forge
decorator                 4.4.2                      py_0    conda-forge
defusedxml                0.6.0                      py_0    conda-forge
entrypoints               0.3             pyhd8ed1ab_1003    conda-forge
et_xmlfile                1.0.1                   py_1001    conda-forge
expat                     2.2.9                hb1e8313_2    conda-forge
filelock                  3.0.12             pyh9f0ad1d_0    conda-forge
**flake8                    3.8.4                      py_0    conda-forge**
freetype                  2.10.4               h3f75d11_0    conda-forge
future                    0.18.2           py36h79c6626_2    conda-forge
gettext                   0.19.8.1          h7937167_1005    conda-forge
git                       2.30.0          pl5320hd05cdc2_0    conda-forge
glib                      2.66.4               h22858aa_1    conda-forge
glob2                     0.7                        py_0    conda-forge
gmp                       6.2.1                h2e338ed_0    conda-forge
gmpy2                     2.1.0b1          py36h0297183_1    conda-forge
hacking                   4.0.0                    pypi_0    pypi
html5lib                  1.1                pyh9f0ad1d_0    conda-forge
icu                       64.2                 h6de7cb9_1    conda-forge
idna                      2.10               pyh9f0ad1d_0    conda-forge
importlib-metadata        3.3.0            py36h79c6626_2    conda-forge
importlib_metadata        3.3.0                hd8ed1ab_2    conda-forge
**ipykernel                 5.4.2            py36h9cf137f_0    conda-forge
ipython                   7.12.0           py36h5ca1d4c_0    conda-forge**
ipython_genutils          0.2.0                      py_1    conda-forge
jdcal                     1.4.1                      py_0    conda-forge
jedi                      0.18.0           py36h79c6626_1    conda-forge
jemalloc                  5.2.1                hb1e8313_4    conda-forge
jinja2                    2.11.2             pyh9f0ad1d_0    conda-forge
joblib                    1.0.0              pyhd8ed1ab_0    conda-forge
jpeg                      9d                   hbcb3906_0    conda-forge
json5                     0.9.5              pyh9f0ad1d_0    conda-forge
jsonschema                3.2.0                      py_2    conda-forge
**jupyter_client            6.1.7                      py_0    conda-forge
jupyter_core              4.7.0            py36h79c6626_0    conda-forge
jupyterlab                2.2.9                      py_0    conda-forge
jupyterlab_pygments       0.1.2              pyh9f0ad1d_0    conda-forge
jupyterlab_server         1.2.0                      py_0**  
kiwisolver                1.3.1            py36he46ecad_0    conda-forge
krb5                      1.17.2               h60d9502_0    conda-forge
lcms2                     2.11                 h11f7e16_1    conda-forge
libarchive                3.5.1                h0a5793d_1    conda-forge
libblas                   3.9.0                6_openblas    conda-forge
libcblas                  3.9.0                6_openblas    conda-forge
libcurl                   7.71.1               h9bf37e3_8    conda-forge
libcxx                    11.0.0               h4c3b8ed_1    conda-forge
libedit                   3.1.20191231         h0678c8f_2    conda-forge
libev                     4.33                 haf1e3a3_1    conda-forge
libffi                    3.3                  h046ec9c_2    conda-forge
libgfortran               5.0.0               h6c81a4c_15    conda-forge
libgfortran5              9.3.0               h6c81a4c_15    conda-forge
libglib                   2.66.4               h7424822_1    conda-forge
libiconv                  1.16                 haf1e3a3_0    conda-forge
liblapack                 3.9.0                6_openblas    conda-forge
liblief                   0.10.1               hb1e8313_2    conda-forge
libnghttp2                1.41.0               h8a08a2b_1    conda-forge
libopenblas               0.3.12          openmp_h54245bb_1    conda-forge
libpng                    1.6.37               h7cec526_2    conda-forge
libsodium                 1.0.18               hbcb3906_1    conda-forge
libssh2                   1.9.0                h8a08a2b_5    conda-forge
libtiff                   4.2.0                h355d032_0    conda-forge
libwebp-base              1.1.0                hbcb3906_3    conda-forge
libxml2                   2.9.10               h53d96d6_0    conda-forge
libxslt                   1.1.33               h320ff13_0    conda-forge
llvm-openmp               11.0.0               h73239a0_1    conda-forge
lxml                      4.6.2            py36ha579a0c_0    conda-forge
lz4-c                     1.9.3                h046ec9c_0    conda-forge
lzo                       2.10              haf1e3a3_1000    conda-forge
markupsafe                1.1.1            py36ha3de816_2    conda-forge
matplotlib-base           3.3.3            py36h50af36e_0    conda-forge
mccabe                    0.6.1                      py_1    conda-forge
mistune                   0.8.4           py36h6941dd6_1002    conda-forge
mpc                       1.1.0             ha57cd0f_1009    conda-forge
mpfr                      4.0.2                h72d8aaf_1    conda-forge
mpmath                    1.1.0                      py_0    conda-forge
navigator-updater         0.2.1                    py36_0  
nbclient                  0.5.1                      py_0    conda-forge
nbconvert                 6.0.7            py36h79c6626_3    conda-forge
nbformat                  5.0.8                      py_0    conda-forge
ncurses                   6.2                  h2e338ed_4    conda-forge
nest-asyncio              1.4.3              pyhd8ed1ab_0    conda-forge
notebook                  6.1.6            py36h79c6626_0    conda-forge
numpy                     1.19.4           py36h08dc641_2    conda-forge
olefile                   0.46               pyh9f0ad1d_1    conda-forge
openpyxl                  2.4.0                    py36_0    bioconda
openssl                   1.1.1i               h35c211d_0    conda-forge
pandas                    1.1.5            py36h2be6da3_0    conda-forge
pandoc                    2.11.3.2             h35c211d_0    conda-forge
pandocfilters             1.4.2                      py_1    conda-forge
parso                     0.8.1              pyhd8ed1ab_0    conda-forge
patsy                     0.5.1                      py_0    conda-forge
pcre                      8.44                 hb1e8313_0    conda-forge
**pep8                      1.7.1                      py_0    conda-forge**
perl                      5.32.0               hbcb3906_0    conda-forge
pexpect                   4.8.0              pyh9f0ad1d_2    conda-forge
pickleshare               0.7.5                   py_1003    conda-forge
pillow                    8.1.0            py36hc04f27d_0    conda-forge
pip                       20.3.3             pyhd8ed1ab_0    conda-forge
pkginfo                   1.6.1              pyh9f0ad1d_0    conda-forge
prometheus_client         0.9.0              pyhd3deb0d_0    conda-forge
prompt-toolkit            3.0.8              pyha770c72_0    conda-forge
prompt_toolkit            3.0.8                hd8ed1ab_0    conda-forge
psutil                    5.8.0            py36h20b66c6_0    conda-forge
ptyprocess                0.7.0              pyhd3deb0d_0    conda-forge
py-lief                   0.10.1           py36ha7a2803_2    conda-forge
pycodestyle               2.6.0              pyh9f0ad1d_0    conda-forge
pycosat                   0.6.3           py36ha3de816_1005    conda-forge
pycparser                 2.20               pyh9f0ad1d_2    conda-forge
pyflakes                  2.2.0              pyh9f0ad1d_0    conda-forge
pygments                  2.7.3              pyhd8ed1ab_0    conda-forge
pyopenssl                 20.0.1             pyhd8ed1ab_0    conda-forge
pyparsing                 2.4.7              pyh9f0ad1d_0    conda-forge
pyqt                      5.9.2            py36h2a560b1_4    conda-forge
pyrsistent                0.17.3           py36h6941dd6_1    conda-forge
pysocks                   1.7.1            py36h2432673_2    conda-forge
**python                    3.6.12          h6c3b2c9_0_cpython    conda-forge
python-dateutil           2.8.1                      py_0    conda-forge
python-libarchive-c       2.9              py36h2432673_2    conda-forge
python.app                1.3              py36h20b66c6_3    conda-forge
python_abi                3.6                     1_cp36m    conda-forge**
pytz                      2020.5             pyhd8ed1ab_0    conda-forge
pyyaml                    5.3.1            py36ha3de816_1    conda-forge
pyzmq                     20.0.0           py36h8302150_1    conda-forge
qt                        5.9.7                h8cf7e54_3    conda-forge
qtpy                      1.9.0                      py_0    conda-forge
readline                  8.0                  h0678c8f_2    conda-forge
requests                  2.25.1             pyhd3deb0d_0    conda-forge
ripgrep                   12.1.1               haf1e3a3_1    conda-forge
ruamel_yaml               0.15.80         py36ha3de816_1003    conda-forge
salmon                    1.4.0                hb70dc8d_0    bioconda
scikit-learn              0.24.0           py36hed11f80_0    conda-forge
scipy                     1.5.3            py36h04de62b_0    conda-forge
seaborn                   0.11.1               h694c41f_0    conda-forge
seaborn-base              0.11.1             pyhd8ed1ab_0    conda-forge
send2trash                1.5.0                      py_0    conda-forge
setuptools                49.6.0           py36h2432673_2    conda-forge
sip                       4.19.8           py36h0a44026_0  
six                       1.15.0             pyh9f0ad1d_0    conda-forge
soupsieve                 2.0.1                      py_1    conda-forge
sqlite                    3.34.0               h17101e1_0    conda-forge
statsmodels               0.12.1           py36hb29be1e_1    conda-forge
sympy                     1.7.1            py36h79c6626_0    conda-forge
tabview                   1.4.2                    py36_1    bioconda
tbb                       2020.2               h926bf3e_1    conda-forge
terminado                 0.9.1            py36h79c6626_1    conda-forge
testpath                  0.4.4                      py_0    conda-forge
threadpoolctl             2.1.0              pyh5ca1d4c_0    conda-forge
tk                        8.6.10               h0419947_1    conda-forge
tornado                   6.1              py36h6941dd6_0    conda-forge
tqdm                      4.7.2                    py36_0    bioconda
traitlets                 4.3.3            py36h9f0ad1d_1    conda-forge
typing_extensions         3.7.4.3                    py_0    conda-forge
urllib3                   1.26.2             pyhd8ed1ab_0    conda-forge
visidata                  2.1                pyhd8ed1ab_0    conda-forge
wcwidth                   0.2.5              pyh9f0ad1d_2    conda-forge
webencodings              0.5.1                      py_1    conda-forge
wheel                     0.36.2             pyhd3deb0d_0    conda-forge
xlrd                      1.2.0              pyh9f0ad1d_1    conda-forge
xz                        5.2.5                haf1e3a3_1    conda-forge
yaml                      0.2.5                haf1e3a3_0    conda-forge
zeromq                    4.3.3                h74dc148_3    conda-forge
zipp                      3.4.0                      py_0    conda-forge
zlib                      1.2.11            h7795811_1010    conda-forge
zstd                      1.4.8                hf387650_1    conda-forge

Pip packages pip list

Package                       Version
appnope                       0.1.2
argon2-cffi                   20.1.0
async-generator               1.10
attrs                         20.3.0
backcall                      0.2.0
backports.functools-lru-cache 1.6.1
**bash-kernel                   0.7.2**
beautifulsoup4                4.9.3
bleach                        1.4.2
brotlipy                      0.7.0
certifi                       2020.12.5
cffi                          1.14.4
chardet                       4.0.0
click                         7.1.2
conda                         4.9.2
conda-build                   3.20.5
conda-package-handling        1.7.2
conda-verify                  3.1.1
cryptography                  3.3.1
cycler                        0.10.0
decorator                     4.4.2
defusedxml                    0.6.0
entrypoints                   0.3
et-xmlfile                    1.0.1
filelock                      3.0.12
**flake8                        3.8.4**
future                        0.18.2
glob2                         0.7
gmpy2                         2.1.0b1
hacking                       4.0.0
html5lib                      1.1
idna                          2.10
importlib-metadata            3.3.0
ipykernel                     5.4.2
ipython                       7.12.0
ipython-genutils              0.2.0
jdcal                         1.4.1
jedi                          0.18.0
Jinja2                        2.11.2
joblib                        1.0.0
json5                         0.9.5
jsonschema                    3.2.0
**jupyter-client                6.1.7
jupyter-core                  4.7.0
jupyterlab                    2.2.9
jupyterlab-pygments           0.1.2
jupyterlab-server             1.2.0**
kiwisolver                    1.3.1
libarchive-c                  2.9
lxml                          4.6.2
MarkupSafe                    1.1.1
matplotlib                    3.3.3
mccabe                        0.6.1
mistune                       0.8.4
mpmath                        1.1.0
navigator-updater             0.2.1
nbclient                      0.5.1
nbconvert                     6.0.7
nbformat                      5.0.8
nest-asyncio                  1.4.3
notebook                      6.1.6
numpy                         1.19.4
olefile                       0.46
openpyxl                      2.4.0b1
pandas                        1.1.5
pandocfilters                 1.4.2
parso                         0.8.1
patsy                         0.5.1
**pep8                          1.7.1**
pexpect                       4.8.0
pickleshare                   0.7.5
Pillow                        8.1.0
pip                           20.3.3
pkginfo                       1.6.1
prometheus-client             0.9.0
prompt-toolkit                3.0.8
psutil                        5.8.0
ptyprocess                    0.7.0
pycodestyle                   2.6.0
pycosat                       0.6.3
pycparser                     2.20
**pyflakes                      2.2.0**
Pygments                      2.7.3
pyOpenSSL                     20.0.1
pyparsing                     2.4.7
pyrsistent                    0.17.3
PySocks                       1.7.1
python-dateutil               2.8.1
pytz                          2020.5
PyYAML                        5.3.1
pyzmq                         20.0.0
QtPy                          1.9.0
requests                      2.25.1
ruamel-yaml-conda             0.15.80
scikit-learn                  0.24.0
scipy                         1.5.3
seaborn                       0.11.1
Send2Trash                    1.5.0
setuptools                    49.6.0.post20201009
six                           1.15.0
soupsieve                     2.0.1
statsmodels                   0.12.1
sympy                         1.7.1
tabview                       1.4.2
terminado                     0.9.1
testpath                      0.4.4
threadpoolctl                 2.1.0
tornado                       6.1
tqdm                          4.7.2
traitlets                     4.3.3
typing-extensions             3.7.4.3
urllib3                       1.26.2
visidata                      2.1
wcwidth                       0.2.5
webencodings                  0.5.1
wheel                         0.36.2
xlrd                          1.2.0
zipp                          3.4.0

jupyter core : 4.7.0 jupyter-notebook : 6.1.6 qtconsole : not installed ipython : 7.19.0 ipykernel : 5.4.2 jupyter client : 6.1.7 jupyter lab : 2.2.9 nbconvert : 6.0.7 ipywidgets : not installed nbformat : 5.0.8 traitlets : 5.0.5

image

image

image

After reading the following from the documentation, I confirmed that I can run the Terminal and Bash in Jupyter Labs.

Note: This extension will only work if you can load the terminal in jupyterlab.

In general I use zsh instead of bash though, not sure if that would affect anything.

aflueckiger commented 3 years ago

I have the same problem using the most current Anaconda Platform which runs:

Although I can see the configuration tab in the "advanced settings", it doesn't show in the "view" menu.

Is there any news on this? Thanks.

filannim commented 3 years ago

Is there any news on this? Thanks.

mlshapiro commented 3 years ago

Try the new version (0.7.x) with JupyterLab 3, if you still have the same issue I will look into it more.

fedec15 commented 2 years ago

same issue with: jupyterlab 3.2.4 jupyterlab-flake8 0.7.1 flake8 4.0.1

any solution?

joshdorrington commented 2 years ago

I have this same problem, the linter doesn't launch and the options in the view menu are greyed out:

jupyterlab 3.2.9 jupyterlab-flake8 0.7.1 flake8 4.0.1

On the offchance it makes a difference I'm accessing my jupyter lab in Chrome, over ssh using port forwarding.

psychemedia commented 2 years ago

The extension doesn't appear to be working in JupyterLab running on MyBinder.

MyBinder provides a useful ground truth for whether the extension works.

ggrrll commented 11 months ago

same here -- the extension is simply not activated

I am on a poetry env, with v. 0.7.1 and

name         : jupyterlab                           
 version      : 4.0.7      
name         : flake8                                                
 version      : 6.1.0     

python 3.9.8 linux mint 21.1