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.

Getting 404 in most recent version of jupyterlab

See original GitHub issue

Thanks for the great extension, but I’m having issues getting it to work on the latest version of jupyter lab (1.1.4) on macOS. I’m using the black code formatter with python (everything is installed in the same conda environment). I know that black works, because 1) pip can find it with pip list | grep black and 2) formatting code in my editor (VSCode) with black works just fine.

I see the the format notebook button at the top of my notebook in jupyterlab, and right-clicking on a cell shows the format cell option the dialog, but there are no commands listed in the command palette. Also in the server terminal I keep getting 404 POST /jupyterlab_code_formatter/format?1571308405340 (::1) 1.51ms referer=http://localhost:8888/lab if I ever try to select either format option.

Any recommendations?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ejollycommented, Oct 17, 2019

Ah weird that solved it. Sorry I thought installing the extension through jupyter lab discovery would include everything needed!

0reactions
ttesileanucommented, Feb 14, 2020

Nothing showed up in the command palette and the shortcut I’d configured to apply Black formatting did nothing.

It mysteriously restarted working, though. I messed with a json configuration for a different extension in .pyenv/versions/3.7.4/envs/jupyter3/etc/jupyter/jupyter_server_config.d and added

{
  "jupyterlab_code_formatter": true
}

then restarted jupyter-lab and it started working, so I thought that somehow fixed it. But now I removed it and restarted jupyter-lab again, and it’s still working, so I don’t get it…

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to solve 404 error of jupyter lab - Stack Overflow
and updated all packages. now I am trying to open Jupyter lab by cmd. when I type this command in cmd: jupyter lab...
Read more >
What to do when things go wrong - The Jupyter Notebook
Check that you have the latest version of any packages that look relevant. Unfortunately it's not always easy to figure out what packages...
Read more >
jupyterlab-git - PyPI
A JupyterLab extension for version control using git.
Read more >
404 error on GET /user/[name]/tree? & No user identified error ...
The SingleUserNotebookApp has a log entry that says No user identified and I think this may be part of the problem. I can't...
Read more >
Voila 404 not found - Support - PYNQ
I think it's best if I post this problem in a new thread. Voila and interactive plots = 'JavaScript output is disabled in...
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