kenkoooo / jupyter-autopep8

PEP8 formatter for Jupyter Notebook
MIT License
66 stars 6 forks source link

spurious warnings on other kernels #11

Open tmbdev opened 6 years ago

tmbdev commented 6 years ago

When I have jupyter-autopep8 installed and enabled (via jupyter_notebook_extensions), when I try to open any other kernel, I get a popup that the autopep8 Jupyter notebook extension does not work with (say) the bash kernel.

This is with jupyter 1.0.0, notebook 5.6.0, on Python 3.6, installed via Conda.

kenkoooo commented 6 years ago

Yeah, it is not designed to work on other kernels. Sorry.

tmbdev commented 6 years ago

I'm not trying to use it on other kernels. The problem is that merely installing it results in spurious warnings on other kernels, making jupyter-autopep8 pretty much incompatible with any installation that uses other kernels.

A better behavior than the barrage of warnings would be for the extension to quietly disable itself when invoked with a non-Python kernel.