question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Formatter not found!

See original GitHub issue

Checklist prior to opening an issue

  • I have followed fully the installation steps laid out in the documentation site.
  • I have restarted jupyterlab.
  • I have read the FAQ section in the documentation site.

Describe the bug To the best of my knowledge, I have followed the install directions, but I get an error that says “Formatter not found!”

Diagnostic commands Please attach the output of the following commands (please format them properly)

  • pip freeze
appdirs==1.4.3
appnope==0.1.0
attrs==19.3.0
backcall==0.1.0
beautifulsoup4==4.9.0
black==19.10b0
bleach==3.1.4
brotlipy==0.7.0
certifi==2020.4.5.1
cffi==1.14.0
chardet==3.0.4
click==7.1.2
cryptography==2.9.2
decorator==4.4.2
defusedxml==0.6.0
entrypoints==0.3
flake8==3.7.9
idna==2.9
importlib-metadata==1.6.0
ipykernel==5.2.1
ipython==7.13.0
ipython-genutils==0.2.0
ipywidgets==7.5.1
jedi==0.17.0
Jinja2==2.11.2
json5==0.9.0
jsonschema==3.2.0
jupyter-client==6.1.3
jupyter-console==6.1.0
jupyter-core==4.6.3
jupyterlab==2.1.0
jupyterlab-code-formatter==1.2.5
jupyterlab-server==1.1.1
MarkupSafe==1.1.1
marshmallow==3.5.2
mccabe==0.6.1
mistune==0.8.4
mypy-extensions==0.4.3
nbconvert==5.6.1
nbformat==5.0.6
notebook==6.0.3
# Editable Git install with no remote (nysdump==0.1)
-e /Users/josh/software/jfhbrook/nys-data
packaging==20.1
pandocfilters==1.4.2
parso==0.7.0
pathspec==0.8.0
pexpect==4.8.0
pickleshare==0.7.5
prometheus-client==0.7.1
prompt-toolkit==3.0.5
ptyprocess==0.6.0
pycodestyle==2.5.0
pycparser==2.20
pyflakes==2.1.1
Pygments==2.6.1
pyOpenSSL==19.1.0
pyparsing==2.4.7
PyQt5==5.12.3
PyQt5-sip==4.19.18
PyQtWebEngine==5.12.1
pyrsistent==0.16.0
PySocks==1.7.1
python-dateutil==2.8.1
pyzmq==19.0.0
qtconsole==4.7.3
QtPy==1.9.0
regex==2020.4.4
requests==2.23.0
Send2Trash==1.5.0
six==1.14.0
soupsieve==1.9.4
terminado==0.8.3
testpath==0.4.4
toml==0.10.0
tornado==6.0.4
tqdm==4.45.0
traitlets==4.3.3
typed-ast==1.4.1
typing-extensions==3.7.4.1
urllib3==1.25.9
wcwidth==0.1.9
webencodings==0.5.1
widgetsnbextension==3.5.1
zipp==3.1.0
  • jupyter labextension list
JupyterLab v2.1.0
Known labextensions:
   app dir: /Users/josh/opt/anaconda3/envs/nys-data/share/jupyter/lab
        @jupyter-widgets/jupyterlab-manager v2.0.0  enabled  OK
        @ryantam626/jupyterlab_code_formatter v1.2.5  enabled  OK
        jupyterlab-flake8 v0.6.1  enabled  OK
  • jupyter serverextension list
config dir: /Users/josh/.jupyter
    jupyterlab_code_formatter  enabled
    - Validating...
      jupyterlab_code_formatter  OK
config dir: /Users/josh/opt/anaconda3/envs/nys-data/etc/jupyter
    jupyterlab  enabled
    - Validating...
      jupyterlab 2.1.0 OK

For good measure:

  • conda env export
name: nys-data
channels:
  - conda-forge
  - defaults
dependencies:
  - appdirs=1.4.3=py_1
  - appnope=0.1.0=py37hc8dfbb8_1001
  - attrs=19.3.0=py_0
  - backcall=0.1.0=py_0
  - beautifulsoup4=4.9.0=py37hc8dfbb8_0
  - black=19.10b0=py37_0
  - bleach=3.1.4=pyh9f0ad1d_0
  - brotlipy=0.7.0=py37h9bfed18_1000
  - ca-certificates=2020.4.5.1=hecc5488_0
  - certifi=2020.4.5.1=py37hc8dfbb8_0
  - cffi=1.14.0=py37h356ff06_0
  - chardet=3.0.4=py37hc8dfbb8_1006
  - click=7.1.2=pyh9f0ad1d_0
  - cryptography=2.9.2=py37he655712_0
  - dbus=1.13.6=h2f22bb5_0
  - decorator=4.4.2=py_0
  - defusedxml=0.6.0=py_0
  - entrypoints=0.3=py37hc8dfbb8_1001
  - expat=2.2.9=h4a8c4bd_2
  - flake8=3.7.9=py37hc8dfbb8_1
  - gettext=0.19.8.1=h46ab8bc_1002
  - glib=2.64.2=h577aef8_0
  - icu=64.2=h6de7cb9_1
  - idna=2.9=py_1
  - importlib-metadata=1.6.0=py37hc8dfbb8_0
  - importlib_metadata=1.6.0=0
  - ipykernel=5.2.1=py37h43977f1_0
  - ipython=7.13.0=py37hc8dfbb8_2
  - ipython_genutils=0.2.0=py_1
  - ipywidgets=7.5.1=py_0
  - jedi=0.17.0=py37hc8dfbb8_0
  - jinja2=2.11.2=pyh9f0ad1d_0
  - jpeg=9c=h1de35cc_1001
  - json5=0.9.0=py_0
  - jsonschema=3.2.0=py37hc8dfbb8_1
  - jupyter=1.0.0=py_2
  - jupyter_client=6.1.3=py_0
  - jupyter_console=6.1.0=py_1
  - jupyter_core=4.6.3=py37hc8dfbb8_1
  - jupyterlab=2.1.0=py_1
  - jupyterlab_code_formatter=1.2.5=py_0
  - jupyterlab_server=1.1.1=py_0
  - krb5=1.17.1=h1752a42_0
  - libclang=9.0.1=default_hf57f61e_0
  - libcxx=10.0.0=h1af66ff_2
  - libedit=3.1.20170329=hcfe32e1_1001
  - libffi=3.2.1=h4a8c4bd_1007
  - libiconv=1.15=h0b31af3_1006
  - libllvm9=9.0.1=h7475705_1
  - libpng=1.6.37=hbbe82c9_1
  - libpq=12.2=h489d428_1
  - libsodium=1.0.17=h01d97ff_0
  - libuv=1.34.0=h0b31af3_0
  - markupsafe=1.1.1=py37h9bfed18_1
  - marshmallow=3.5.2=py_0
  - mccabe=0.6.1=py_1
  - mistune=0.8.4=py37h9bfed18_1001
  - mypy_extensions=0.4.3=py37hc8dfbb8_1
  - nbconvert=5.6.1=py37hc8dfbb8_1
  - nbformat=5.0.6=py_0
  - ncurses=6.1=h0a44026_1002
  - nodejs=13.13.0=h38d8c5a_0
  - notebook=6.0.3=py37_0
  - nspr=4.20=h0a44026_1000
  - nss=3.47=hc0980d9_0
  - openssl=1.1.1g=h0b31af3_0
  - packaging=20.1=py_0
  - pandoc=2.9.2.1=0
  - pandocfilters=1.4.2=py_1
  - parso=0.7.0=pyh9f0ad1d_0
  - pathspec=0.8.0=pyh9f0ad1d_0
  - pcre=8.44=h4a8c4bd_0
  - pexpect=4.8.0=py37hc8dfbb8_1
  - pickleshare=0.7.5=py37hc8dfbb8_1001
  - pip=20.0.2=py_2
  - prometheus_client=0.7.1=py_0
  - prompt-toolkit=3.0.5=py_0
  - prompt_toolkit=3.0.5=0
  - ptyprocess=0.6.0=py_1001
  - pycodestyle=2.5.0=py_0
  - pycparser=2.20=py_0
  - pyflakes=2.1.1=py_0
  - pygments=2.6.1=py_0
  - pyopenssl=19.1.0=py_1
  - pyparsing=2.4.7=pyh9f0ad1d_0
  - pyqt=5.12.3=py37he22c54c_1
  - pyrsistent=0.16.0=py37h9bfed18_0
  - pysocks=1.7.1=py37hc8dfbb8_1
  - python=3.7.6=h90870a6_5_cpython
  - python-dateutil=2.8.1=py_0
  - python_abi=3.7=1_cp37m
  - pyzmq=19.0.0=py37haec44b1_1
  - qt=5.12.5=h514805e_3
  - qtconsole=4.7.3=pyh9f0ad1d_0
  - qtpy=1.9.0=py_0
  - readline=8.0=hcfe32e1_0
  - regex=2020.4.4=py37h9bfed18_0
  - requests=2.23.0=pyh8c360ce_2
  - send2trash=1.5.0=py_0
  - setuptools=46.1.3=py37hc8dfbb8_0
  - six=1.14.0=py_1
  - soupsieve=1.9.4=py37hc8dfbb8_1
  - sqlite=3.30.1=h93121df_0
  - terminado=0.8.3=py37hc8dfbb8_1
  - testpath=0.4.4=py_0
  - tk=8.6.10=hbbe82c9_0
  - toml=0.10.0=py_0
  - tornado=6.0.4=py37h9bfed18_1
  - tqdm=4.45.0=pyh9f0ad1d_1
  - traitlets=4.3.3=py37hc8dfbb8_1
  - typed-ast=1.4.1=py37h0b31af3_0
  - typing_extensions=3.7.4.1=py37hc8dfbb8_3
  - urllib3=1.25.9=py_0
  - wcwidth=0.1.9=pyh9f0ad1d_0
  - webencodings=0.5.1=py_1
  - wheel=0.34.2=py_1
  - widgetsnbextension=3.5.1=py37_0
  - xz=5.2.5=h0b31af3_0
  - zeromq=4.3.2=h6de7cb9_2
  - zipp=3.1.0=py_0
  - zlib=1.2.11=h0b31af3_1006
  - pip:
    - pyqt5-sip==4.19.18
    - pyqtwebengine==5.12.1
prefix: /Users/josh/opt/anaconda3/envs/nys-data

the output of various which’s:

(nys-data) [josh@vulpix nys-data]$ which jupyter
/Users/josh/opt/anaconda3/envs/nys-data/bin/jupyter
(nys-data) [josh@vulpix nys-data]$ which black
/Users/josh/opt/anaconda3/envs/nys-data/bin/black
(nys-data) [josh@vulpix nys-data]$ which python
/Users/josh/opt/anaconda3/envs/nys-data/bin/python

Screenshots If applicable, add screenshots to help explain your problem.

image

Additional context Add any other context about the problem here.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
jfhbrookcommented, May 4, 2020

OK dope. I installed isort and now everything is working great. Thanks!

1reaction
ryantam626commented, May 4, 2020

Ah, this is due to a recent change to set isort and black as default formatters, I forgot to update the docs to highlight this.

Also the error message is not very clear what went wrong and can be improved.

I will pick this up this week 👍 (and as @acere pointed out, you can fix it by either method he posted)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Sapui5 formatter function not found! - SAP Community
I'm trying to use a formatter function in my app to give format to an sap datetime data, when I declare it in...
Read more >
Formatter not found ! · Issue #8398 · jupyterlab ... - GitHub
Hi, after not seeing the icon (we discussed last week to find a solution about this and you told me : try something...
Read more >
VSCode: Formatter not found
Hi,. I am using VSCode together with IRIS 2021.1. When using Shift+Alt+F to reformat a class file, it pops up with the below...
Read more >
SAPUI5 formatter function not found - Stack Overflow
I think the way you have attempted the binding is wrong. In js view, you can bind as follows: var rowSettingsTemplate = new...
Read more >
Code formatting in Jupyter cells. TL;DR - Medium
He calls it “the uncompromising code formatter”. ... I just found this little wrapper around a small formatting function using black , it's...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found