Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

404 GET /lsp/status? #250

Closed
robna opened this issue Apr 20, 2020 · 12 comments
Closed

404 GET /lsp/status? #250

robna opened this issue Apr 20, 2020 · 12 comments

Comments

@robna
Copy link

robna commented Apr 20, 2020

Description

I have installed jupyterlab-lsp extension, following the guideline here in the
README.md. Although no problems with installation, I can't use it in jupyter lab. I think this might be similar to #203, however, I don't have pyls installed, and I can't remove build_config.json as it was recommended from the discourse channel linked there, because /usr/share/jupyter/lab/settings/ is empty (not sure if this is related to it). The other jupyter lab extensions that I have installed work.
Screenshot-20200420233922-243x423

Reproduce

  1. pip install jupyter-lsp
  2. jupyter labextension install @krassowski/jupyterlab-lsp
  3. pip install python-language-server[all]
  4. jupyter lab

Diagnose:
I don't have any functionality of jupyterlab-lsp available in my notebooks. It
is however listed as enabled in the jupyter lab extensions.
In the terminal running the server I get:
[W 19:41:44.712 LabApp] 404 GET /lsp/status?1587404503700 (127.0.0.1) 57.23ms referer=http://localhost:8888/

Expected behavior

Run jupyter lab with working lsp functions

Context

  • Operating System and version: Linux-5.4.33-3-MANJARO-x86_64
  • Browser and version: Firefox 75.0
  • JupyterLab version: 2.1.0-1
  • jupyter-lsp version: 0.8.0
  • @krassowski/jupyterlab-lsp version: 1.0.0
Troubleshoot Output
jupyter troubleshoot
$PATH:
     /home/me/.local/bin
     /usr/local/bin
     /usr/bin
     /bin
     /usr/local/sbin
     /usr/lib/jvm/default/bin
     /usr/bin/site_perl
     /usr/bin/vendor_perl
     /usr/bin/core_perl
     /var/lib/snapd/snap/bin
     /home/me/bin

sys.path:
/usr/bin
/usr/lib/python38.zip
/usr/lib/python3.8
/usr/lib/python3.8/lib-dynload
/home/me/.local/lib/python3.8/site-packages
/usr/lib/python3.8/site-packages

sys.executable:
/usr/bin/python3

sys.version:
3.8.2 (default, Apr 8 2020, 14:31:25)
[GCC 9.3.0]

platform.platform():
Linux-5.4.33-3-MANJARO-x86_64-with-glibc2.2.5

which -a jupyter:
/usr/bin/jupyter
/bin/jupyter

pip list:
Package Version
----------------------------- ------------------
aiohttp 3.6.2
aiohttp-socks 0.3.7
aiorpcX 0.18.4
alabaster 0.7.12
altair 4.1.0
apipkg 1.5
apparmor 2.13.4
appdirs 1.4.3
astroid 2.3.3
async-timeout 3.0.1
atomicwrites 1.3.0
attrs 19.3.0
autopep8 1.5.1
Babel 2.8.0
backcall 0.1.0
Beaker 1.11.0
beautifulsoup4 4.8.2
bleach 3.1.3
Bottleneck 1.3.2
brial 1.0.2
Brlapi 0.7.0
btrfsutil 1.2.0
CacheControl 0.12.6
cairocffi 1.1.0
CairoSVG 2.4.2
ceph-volume 1.0.0
cephfs 2.0.0
cephfs-shell 0.0.1
certifi 2019.11.28
cffi 1.14.0
chardet 3.0.4
chrome-gnome-shell 0.0.0
click 7.1.1
cloudpickle 1.2.2
colorama 0.4.3
contextlib2 0.6.0.post1
coverage 4.5.4
cryptography 2.9
cssselect2 0.3.0
cupshelpers 1.0
cvxopt 1.2.5
cycler 0.10.0
cypari2 2.1.1
cysignals 1.10.2
Cython 0.29.16
dash 1.10.0
dash-core-components 1.9.0
dash-html-components 1.0.3
dash-renderer 1.3.0
dash-table 4.6.2
decorator 4.4.2
defusedxml 0.6.0
diff-match-patch 20181111
dill 0.3.1.1
distlib 0.3.0
distro 1.4.0
dnspython 1.16.0
docutils 0.14
ecdsa 0.15
Electrum 3.3.8
entrypoints 0.3
et-xmlfile 1.0.1
flake8 3.7.9
Flask 1.1.2
Flask-Compress 1.4.0
fpylll 0.5.1.dev0
future 0.18.2
GDAL 3.0.4
gmpy2 2.1.0b4
gpodder 3.10.13
gufw 19.10.0
gunicorn 20.0.4
h5py 2.10.0
helpdev 0.6.10
html5lib 1.0.1
idna 2.9
imagecodecs 2020.2.18
imageio 2.8.0
imagesize 1.2.0
importlib-metadata 1.5.0
iniconfig 1.0.0
intervaltree 3.0.2
ipykernel 5.1.4
ipyparallel 6.2.5
ipython 7.13.0
ipython-genutils 0.1.0
ipywidgets 7.5.1
isc 2.0
isort 4.3.21
itsdangerous 1.1.0
jdcal 1.4.1
jedi 0.15.2
jeepney 0.4.3
Jinja2 2.11.2
joblib 0.14.1
json5 0.9.4
jsonrpclib-pelix 0.4.1
jsonschema 3.2.0
jupyter-client 6.0.0
jupyter-console 6.1.0
jupyter-core 4.6.3
jupyter-lsp 0.8.0
jupyterlab 2.1.0
jupyterlab-server 1.1.1
keyring 21.2.0
kiwisolver 1.1.0
lazy-object-proxy 1.4.3
lensfun 0.3.95
LibAppArmor 2.13.4
lightdm-gtk-greeter-settings 1.2.2
lockfile 0.12.2
louis 3.13.0
lxml 4.5.0
Mako 1.1.2
Markdown 3.1.1
MarkupSafe 1.1.1
matplotlib 3.2.1
mccabe 0.6.1
mistune 0.8.4
more-itertools 8.2.0
mpmath 1.1.0
msgpack 1.0.0
multidict 4.7.5
mygpoclient 1.8
mysql-connector-python 8.0.19
nbconvert 5.6.1
nbformat 4.4.0
networkx 2.4
notebook 6.0.3
npyscreen 4.10.5
numexpr 2.7.1
numpy 1.18.2
numpydoc 0.9.2
odfpy 1.4.1
olefile 0.46
opencv-python 4.2.0.32
openpyxl 3.0.3
ordered-set 3.1.1
OWSLib 0.19.2
packaging 20.3
pacman-mirrors 4.16.4
pandas 1.0.3
pandas-datareader 0.8.1
pandocfilters 1.4.2
panflute 1.12.5
pantable 0.12.2
parso 0.5.2
pathtools 0.1.2
patsy 0.5.1
pbkdf2 1.3
pep517 0.8.2
pexpect 4.8.0
pickleshare 0.7.5
Pillow 6.2.1
pip 20.0.2
Pivy 0.6.5
plotly 4.6.0
plotly-express 0.4.1
pluggy 0.13.1
ply 3.11
podcastparser 0.6.4
pplpy 0.8.4
progress 1.5
progressbar2 3.50.1
prometheus-client 0.7.1
prompt-toolkit 3.0.5
protobuf 3.11.4
psutil 5.7.0
psycopg2 2.8.5
ptyprocess 0.6.0
pwquality 1.4.2
py 1.8.1
pyaes 1.6.1
pyaml 20.4.0
pycairo 1.19.1
pycodestyle 2.5.0
pycparser 2.20
pycryptodomex 3.9.7
pycups 1.9.74
pycurl 7.43.0.5
pydocstyle 5.0.2
pyflakes 2.1.1
Pygments 2.6.1
PyGObject 3.36.0
pylint 2.4.4
PyOpenGL 3.1.5
pyparsing 2.4.7
pyperclip 1.7.0
pyproj 2.5.0
PyQt4-sip 4.19.19
PyQt5 5.12.3
PyQt5-sip 12.7.2
PyQtWebEngine 5.12.1
pyrsistent 0.16.0
pysmbc 1.0.20
PySocks 1.7.1
pytest 5.4.1
pytest-cov 2.8.1
python-dateutil 2.8.1
python-jsonrpc-server 0.3.4
python-language-server 0.31.9
python-utils 2.4.0
python-xlib 0.27
pytoml 0.1.21
pytz 2019.3
pyudev 0.22.0.dev20200219
PyWavelets 1.1.1
pyxdg 0.26
PyYAML 5.3.1
pyzmq 19.0.0
QDarkStyle 2.8.1
qgrid 1.3.1
qrcode 6.1
qreator 16.6.2
qrencode 1.2
QScintilla 2.11.4
QtAwesome 0.6.0
qtconsole 4.7.1
QtPy 1.9.0
rados 2.0.0
rbd 2.0.0
Recoll 1.0
recollchm 0.8.4.1+git
reportlab 3.5.42
requests 2.23.0
retrying 1.3.3
rgw 2.0.0
rope 0.16.0
rpy2 3.3.1
sage 9.0
sagenb-export 3.3
sagetex 3.4
scikit-image 0.16.2
scipy 1.4.1
seaborn 0.9.0
SecretStorage 3.1.2
Send2Trash 1.5.0
setuptools 46.1.3
sip 4.19.22
six 1.14.0
snowballstemmer 2.0.0
sortedcontainers 2.1.0
soupsieve 1.9.5
Sphinx 3.0.1
sphinxcontrib-applehelp 1.0.2
sphinxcontrib-devhelp 1.0.2
sphinxcontrib-htmlhelp 1.0.3
sphinxcontrib-jsmath 1.0.1
sphinxcontrib-qthelp 1.0.3
sphinxcontrib-serializinghtml 1.1.4
spyder 4.1.2
spyder-kernels 1.9.0
spyder-notebook 0.2.3
SQLAlchemy 1.3.16
statsmodels 0.11.1
svgwrite 1.3.1
sympy 1.5.1
tables 3.6.1
tabulate 0.8.7
team 1.0
terminado 0.8.3
testpath 0.4.4
tifffile 2020.2.16
tinycss2 1.0.2
toml 0.10.0
toolz 0.10.0
tornado 6.0.4
traitlets 4.3.3
tzlocal 2.0.0
ufw 0.36
ujson 1.35
urllib3 1.25.9
vobject 0.9.6.1
watchdog 0.10.2
wcwidth 0.1.8
webencodings 0.5.1
websocket-client 0.57.0
Werkzeug 1.0.1
widgetsnbextension 3.5.1
wrapt 1.12.1
wurlitzer 2.0.0
xcffib 0.9.0
xlrd 1.2.0
XlsxWriter 1.2.8
yapf 0.29.0
yarl 1.4.2
zeitgeist-explorer 0.2
zipp 3.1.0

Command Line Output
[I 21:19:49.150 LabApp] Loading IPython parallel extension
[I 21:19:49.534 LabApp] JupyterLab extension loaded from 
/usr/lib/python3.8/site-packages/jupyterlab
[I 21:19:49.534 LabApp] JupyterLab application directory is /usr/share/jupyter/lab
[I 21:19:49.539 LabApp] Serving notebooks from local directory: /home/me
[I 21:19:49.539 LabApp] The Jupyter Notebook is running at:
[I 21:19:49.539 LabApp] 
http://localhost:8888/?token=91b95b03e6dc8369578edc0903d9ba1071aa0e31bbd98c02
[I 21:19:49.539 LabApp]  or 
http://127.0.0.1:8888/?token=91b95b03e6dc8369578edc0903d9ba1071aa0e31bbd98c02
[I 21:19:49.539 LabApp] Use Control-C to stop this server and shut down all 
kernels (twice to skip confirmation).
[C 21:19:49.616 LabApp]
 To access the notebook, open this file in a browser:

file:///home/me/.local/share/jupyter/runtime/nbserver-98522-open.html
Or copy and paste one of these URLs:
http://localhost:8888/?token=91b95b03e6dc8369578edc0903d9ba1071aa0e31bbd98c02
or
http://127.0.0.1:8888/?token=91b95b03e6dc8369578edc0903d9ba1071aa0e31bbd98c02
[I 21:19:54.603 LabApp] Build is up to date
[W 21:19:54.648 LabApp] 404 GET /lsp/status?1587410393600 (::1) 44.40ms
referer=http://localhost:8888/
[I 21:19:57.044 LabApp] Kernel started: b9ced1b9-d653-451d-931c-c65f3d7b11f9
[I 21:19:57.884 LabApp] Starting buffering for
b9ced1b9-d653-451d-931c-c65f3d7b11f9:a024146c-9804-4152-bda4-5ead2bd22212
|

Browser Output
Qgrid was unable to load base/js/dialog. Full screen button won't be available 
qgrid.widget.js:3:13
Starting application in workspace: "/lab" index.js:33:31
Error: "Not Found"
     fetchSessions manager.js:22

LSP: waiting for notebook.ipynb to fully load notebook.js:66:24
Starting WebSocket:
ws://localhost:8888/api/kernels/b9ced1b9-d653-451d-931c-c65f3d7b11f9 2
default.js:40:13
LSP: notebook.ipynb ready for connection notebook.js:78:20
LSP: will connect using language: python jl_adapter.js:260:43
LSP: connection requested
{…}

document_path: "notebook.ipynb"

language: "python"

virtual_document: Object { path: "notebook.ipynb.py", file_extension: "py",
has_lsp_supported_file: false, … }

: Object { … }
connection_manager.js:122:39
LSP: Connection Socket
{…}

document_path: "notebook.ipynb"

language: "python"

virtual_document: Object { path: "notebook.ipynb.py", file_extension: "py",
has_lsp_supported_file: false, … }

: Object { … }
connection_manager.js:81:40
TypeError: "e is null"
l url.js:41
r url.js:41
t connection_manager.js:167
connect_socket connection_manager.js:85
connect connection_manager.js:127
connect jl_adapter.js:271
connect_document jl_adapter.js:177
init_once_ready notebook.js:84

Request to access cookie or storage on “” was blocked because we are
blocking all third-party storage access requests and content blocking is
enabled. 101
Request to access cookie or storage on “https://github.com/plotly.png?size=32”
was blocked because we are blocking all third-party storage access requests and
content blocking is enabled.
Request to access cookie or storage on
https://github.com/jupyterlab.png?size=32” was blocked because we are blocking
all third-party storage access requests and content blocking is enabled.
Request to access cookie or storage on “https://github.com/dask.png?size=32” was
blocked because we are blocking all third-party storage access requests and
content blocking is enabled.
Request to access cookie or storage on
https://github.com/eWaterCycle.png?size=32” was blocked because we are blocking
all third-party storage access requests and content blocking is enabled.
Request to access cookie or storage on
https://github.com/krassowski.png?size=32” was blocked because we are blocking
all third-party storage access requests and content blocking is enabled.
Request to access cookie or storage on
https://github.com/Quantopian.png?size=32” was blocked because we are blocking
all third-party storage access requests and content blocking is enabled.
Request to access cookie or storage on “https://github.com/CDAT.png?size=32” was
blocked because we are blocking all third-party storage access requests and
content blocking is enabled.
Request to access cookie or storage on
https://github.com/ryantam626.png?size=32” was blocked because we are blocking
all third-party storage access requests and content blocking is enabled.
Request to access cookie or storage on
https://github.com/jupytercalpoly.png?size=32” was blocked because we are
blocking all third-party storage access requests and content blocking is enabled.
Request to access cookie or storage on “https://github.com/bokeh.png?size=32”
was blocked because we are blocking all third-party storage access requests and
content blocking is enabled.
Request to access cookie or storage on “https://github.com/voziq.png?size=32”
was blocked because we are blocking all third-party storage access requests and
content blocking is enabled.
Request to access cookie or storage on
https://github.com/InsightSoftwareConsortium.png?size=32” was blocked because
we are blocking all third-party storage access requests and content blocking is
enabled.
Request to access cookie or storage on “https://github.com/mwouts.png?size=32”
was blocked because we are blocking all third-party storage access requests and
content blocking is enabled.
Request to access cookie or storage on “https://github.com/pyviz.png?size=32”
was blocked because we are blocking all third-party storage access requests and
content blocking is enabled.
Request to access cookie or storage on
https://github.com/jupyter-widgets.png?size=32” was blocked because we are
blocking all third-party storage access requests and content blocking is enabled.
Request to access cookie or storage on “https://github.com/kpe.png?size=32” was
blocked because we are blocking all third-party storage access requests and
content blocking is enabled.
Request to access cookie or storage on
https://github.com/fcollonval.png?size=32” was blocked because we are blocking
all third-party storage access requests and content blocking is enabled.
Request to access cookie or storage on
https://github.com/mariobuikhuizen.png?size=32” was blocked because we are
blocking all third-party storage access requests and content blocking is enabled.
Request to access cookie or storage on
https://github.com/aquirdTurtle.png?size=32” was blocked because we are
blocking all third-party storage access requests and content blocking is enabled.
Request to access cookie or storage on “https://github.com/jtpio.png?size=32”
was blocked because we are blocking all third-party storage access requests and
content blocking is enabled.
Request to access cookie or storage on “https://github.com/pbugnion.png?size=32”
was blocked because we are blocking all third-party storage access requests and
content blocking is enabled.
Request to access cookie or storage on
https://github.com/Quansight.png?size=32” was blocked because we are blocking
all third-party storage access requests and content blocking is enabled.
Request to access cookie or storage on “https://github.com/yeebc.png?size=32”
was blocked because we are blocking all third-party storage access requests and
content blocking is enabled.
Request to access cookie or storage on “https://github.com/mwcraig.png?size=32”
was blocked because we are blocking all third-party storage access requests and
content blocking is enabled.
Request to access cookie or storage on “https://github.com/Rahlir.png?size=32”
was blocked because we are blocking all third-party storage access requests and
content blocking is enabled.
Request to access cookie or storage on “https://github.com/AARNet.png?size=32”
was blocked because we are blocking all third-party storage access requests and
content blocking is enabled.
Request to access cookie or storage on “https://github.com/vatlab.png?size=32”
was blocked because we are blocking all third-party storage access requests and
content blocking is enabled.
Request to access cookie or storage on
https://github.com/wuxi-nextcode.png?size=32” was blocked because we are
blocking all third-party storage access requests and content blocking is enabled.
Request to access cookie or storage on
https://github.com/QuantStack.png?size=32” was blocked because we are blocking
all third-party storage access requests and content blocking is enabled.
Request to access cookie or storage on “https://github.com/vispy.png?size=32”
was blocked because we are blocking all third-party storage access requests and
content blocking is enabled.
Request to access cookie or storage on
https://github.com/opentradesolutions.png?size=32” was blocked because we are
blocking all third-party storage access requests and content blocking is enabled.
Request to access cookie or storage on “https://github.com/hadim.png?size=32”
was blocked because we are blocking all third-party storage access requests and
content blocking is enabled.
Request to access cookie or storage on “https://github.com/agoose77.png?size=32”
was blocked because we are blocking all third-party storage access requests and
content blocking is enabled.
Request to access cookie or storage on “https://github.com/tslaton.png?size=32”
was blocked because we are blocking all third-party storage access requests and
content blocking is enabled.
Request to access cookie or storage on “https://github.com/keplergl.png?size=32”
was blocked because we are blocking all third-party storage access requests and
content blocking is enabled.
Request to access cookie or storage on
https://github.com/paxos-raft.png?size=32” was blocked because we are blocking
all third-party storage access requests and content blocking is enabled.
Request to access cookie or storage on
https://github.com/osscar-org.png?size=32” was blocked because we are blocking
all third-party storage access requests and content blocking is enabled.
Request to access cookie or storage on
https://github.com/telamonian.png?size=32” was blocked because we are blocking
all third-party storage access requests and content blocking is enabled.
Request to access cookie or storage on
https://github.com/AaronWatters.png?size=32” was blocked because we are
blocking all third-party storage access requests and content blocking is enabled.
Request to access cookie or storage on “https://github.com/LoLab-VU.png?size=32”
was blocked because we are blocking all third-party storage access requests and
content blocking is enabled.
Request to access cookie or storage on “https://github.com/lckr.png?size=32” was
blocked because we are blocking all third-party storage access requests and
content blocking is enabled.
Request to access cookie or storage on
https://github.com/yudai-nkt.png?size=32” was blocked because we are blocking
all third-party storage access requests and content blocking is enabled.
Request to access cookie or storage on
https://github.com/oriolmirosa.png?size=32” was blocked because we are blocking
all third-party storage access requests and content blocking is enabled.
Request to access cookie or storage on
https://github.com/OdumInstitute.png?size=32” was blocked because we are
blocking all third-party storage access requests and content blocking is enabled.
Request to access cookie or storage on
https://github.com/Quantstack.png?size=32” was blocked because we are blocking
all third-party storage access requests and content blocking is enabled.
Request to access cookie or storage on “https://github.com/axelfahy.png?size=32”
was blocked because we are blocking all third-party storage access requests and
content blocking is enabled.
Request to access cookie or storage on
https://github.com/pair-code.png?size=32” was blocked because we are blocking
all third-party storage access requests and content blocking is enabled.
Request to access cookie or storage on “https://github.com/chstan.png?size=32”
was blocked because we are blocking all third-party storage access requests and
content blocking is enabled.
Request to access cookie or storage on “https://github.com/simicd.png?size=32”
was blocked because we are blocking all third-party storage access requests and
content blocking is enabled.
Request to access cookie or storage on
https://github.com/WorldWideTelescope.png?size=32” was blocked because we are
blocking all third-party storage access requests and content blocking is enabled.
Request to access cookie or storage on “https://github.com/nmearl.png?size=32”
was blocked because we are blocking all third-party storage access requests and
content blocking is enabled.
Request to access cookie or storage on “https://github.com/aolney.png?size=32”
was blocked because we are blocking all third-party storage access requests and
content blocking is enabled.
Request to access cookie or storage on “https://github.com/manics.png?size=32”
was blocked because we are blocking all third-party storage access requests and
content blocking is enabled.
Request to access cookie or storage on “https://github.com/ibqn.png?size=32” was
blocked because we are blocking all third-party storage access requests and
content blocking is enabled.
Request to access cookie or storage on
https://github.com/youngthejames.png?size=32” was blocked because we are
blocking all third-party storage access requests and content blocking is enabled.
Request to access cookie or storage on “https://github.com/vidartf.png?size=32”
was blocked because we are blocking all third-party storage access requests and
content blocking is enabled.
Request to access cookie or storage on
https://github.com/ismms-himc.png?size=32” was blocked because we are blocking
all third-party storage access requests and content blocking is enabled.
Request to access cookie or storage on “https://github.com/odahu.png?size=32”
was blocked because we are blocking all third-party storage access requests and
content blocking is enabled.
Request to access cookie or storage on
https://github.com/maartenbreddels.png?size=32” was blocked because we are
blocking all third-party storage access requests and content blocking is enabled.
Request to access cookie or storage on “https://github.com/algrx.png?size=32”
was blocked because we are blocking all third-party storage access requests and
content blocking is enabled.
Request to access cookie or storage on “https://github.com/ZRRJDD.png?size=32”
was blocked because we are blocking all third-party storage access requests and
content blocking is enabled.
Request to access cookie or storage on “https://github.com/JovianML.png?size=32”
was blocked because we are blocking all third-party storage access requests and
content blocking is enabled.
Request to access cookie or storage on
https://github.com/SwissDataScienceCenter.png?size=32” was blocked because we
are blocking all third-party storage access requests and content blocking is
enabled.
Request to access cookie or storage on
https://github.com/dotmesh-io.png?size=32” was blocked because we are blocking
all third-party storage access requests and content blocking is enabled.
Request to access cookie or storage on “https://github.com/cdat.png?size=32” was
blocked because we are blocking all third-party storage access requests and
content blocking is enabled.
Request to access cookie or storage on
https://github.com/mcmartins.png?size=32” was blocked because we are blocking
all third-party storage access requests and content blocking is enabled.
Request to access cookie or storage on “https://github.com/kaggle.png?size=32”
was blocked because we are blocking all third-party storage access requests and
content blocking is enabled.
Request to access cookie or storage on
https://github.com/chaoleili.png?size=32” was blocked because we are blocking
all third-party storage access requests and content blocking is enabled.
Request to access cookie or storage on “https://github.com/traut.png?size=32”
was blocked because we are blocking all third-party storage access requests and
content blocking is enabled.
Request to access cookie or storage on
https://github.com/kubeflow-kale.png?size=32” was blocked because we are
blocking all third-party storage access requests and content blocking is enabled.
Request to access cookie or storage on “https://github.com/jwkvam.png?size=32”
was blocked because we are blocking all third-party storage access requests and
content blocking is enabled.
Request to access cookie or storage on “https://github.com/uber.png?size=32” was
blocked because we are blocking all third-party storage access requests and
content blocking is enabled.
Request to access cookie or storage on “https://github.com/NERSC.png?size=32”
was blocked because we are blocking all third-party storage access requests and
content blocking is enabled.
Request to access cookie or storage on “https://github.com/kreuzert.png?size=32”
was blocked because we are blocking all third-party storage access requests and
content blocking is enabled.
Request to access cookie or storage on
https://github.com/deathbeds.png?size=32” was blocked because we are blocking
all third-party storage access requests and content blocking is enabled.
Request to access cookie or storage on “https://github.com/towicode.png?size=32”
was blocked because we are blocking all third-party storage access requests and
content blocking is enabled.
Request to access cookie or storage on
https://github.com/martinRenou.png?size=32” was blocked because we are blocking
all third-party storage access requests and content blocking is enabled.
Request to access cookie or storage on “https://github.com/IBM.png?size=32” was
blocked because we are blocking all third-party storage access requests and
content blocking is enabled.
Request to access cookie or storage on “https://github.com/ijmbarr.png?size=32”
was blocked because we are blocking all third-party storage access requests and
content blocking is enabled.
Request to access cookie or storage on
https://github.com/jupyterhub.png?size=32” was blocked because we are blocking
all third-party storage access requests and content blocking is enabled.
Request to access cookie or storage on “https://github.com/parente.png?size=32”
was blocked because we are blocking all third-party storage access requests and
content blocking is enabled.
Request to access cookie or storage on
https://github.com/mlshapiro.png?size=32” was blocked because we are blocking
all third-party storage access requests and content blocking is enabled.
Request to access cookie or storage on
https://github.com/AndrewTBurks.png?size=32” was blocked because we are
blocking all third-party storage access requests and content blocking is enabled.
Request to access cookie or storage on
https://github.com/ryanhomer.png?size=32” was blocked because we are blocking
all third-party storage access requests and content blocking is enabled.
Request to access cookie or storage on
https://github.com/wallneradam.png?size=32” was blocked because we are blocking
all third-party storage access requests and content blocking is enabled.
Request to access cookie or storage on “https://github.com/mkzilla.png?size=32”
was blocked because we are blocking all third-party storage access requests and
content blocking is enabled.
Request to access cookie or storage on
https://github.com/esdc-esac-esa-int.png?size=32” was blocked because we are
blocking all third-party storage access requests and content blocking is enabled.
Request to access cookie or storage on
https://github.com/umerhasan17.png?size=32” was blocked because we are blocking
all third-party storage access requests and content blocking is enabled.
Request to access cookie or storage on “https://github.com/rajvijen.png?size=32”
was blocked because we are blocking all third-party storage access requests and
content blocking is enabled.
Request to access cookie or storage on “https://github.com/qzchenwl.png?size=32”
was blocked because we are blocking all third-party storage access requests and
content blocking is enabled.
Request to access cookie or storage on “https://github.com/ReviewNB.png?size=32”
was blocked because we are blocking all third-party storage access requests and
content blocking is enabled.
Request to access cookie or storage on
https://github.com/eurodatacube.png?size=32” was blocked because we are
blocking all third-party storage access requests and content blocking is enabled.
Request to access cookie or storage on “https://github.com/erdc.png?size=32” was
blocked because we are blocking all third-party storage access requests and
content blocking is enabled.
Request to access cookie or storage on
https://github.com/K3D-tools.png?size=32” was blocked because we are blocking
all third-party storage access requests and content blocking is enabled.
Request to access cookie or storage on
https://github.com/pschatzmann.png?size=32” was blocked because we are blocking
all third-party storage access requests and content blocking is enabled.
Request to access cookie or storage on
https://github.com/robots-from-jupyter.png?size=32” was blocked because we are
blocking all third-party storage access requests and content blocking is enabled.
Request to access cookie or storage on “https://github.com/lux-org.png?size=32”
was blocked because we are blocking all third-party storage access requests and
content blocking is enabled.
Request to access cookie or storage on
https://github.com/gibiansky.png?size=32” was blocked because we are blocking
all third-party storage access requests and content blocking is enabled.
Request to access cookie or storage on “https://github.com/dfm.png?size=32” was
blocked because we are blocking all third-party storage access requests and
content blocking is enabled.
Request to access cookie or storage on
https://github.com/explosion.png?size=32” was blocked because we are blocking
all third-party storage access requests and content blocking is enabled.
Request to access cookie or storage on
https://github.com/KitchenMate.png?size=32” was blocked because we are blocking
all third-party storage access requests and content blocking is enabled.

is_visible failed Error: "Cell not found in cell_line_map"
transform_from_notebook_to_root notebook.js:52
context_from_active_document command_manager.js:147
get_context command_manager.js:90
is_visible command_manager.js:98
isVisible command_manager.js:16
isVisible index.js:311
get commandpalette.js:1076
c commandpalette.js:761
r commandpalette.js:732
onUpdateRequest commandpalette.js:248
processMessage widget.js:503
w index.js:400
n index.js:123
C index.js:436
command_manager.js:103:29
is_visible failed Error: "Cell not found in cell_line_map"
transform_from_notebook_to_root notebook.js:52
context_from_active_document command_manager.js:147
get_context command_manager.js:90
is_visible command_manager.js:98
isVisible command_manager.js:16
isVisible index.js:311
get commandpalette.js:1076
c commandpalette.js:761
r commandpalette.js:732
onUpdateRequest commandpalette.js:248
processMessage widget.js:503
w index.js:400
n index.js:123
C index.js:436
command_manager.js:103:29
is_visible failed Error: "Cell not found in cell_line_map"
transform_from_notebook_to_root notebook.js:52
context_from_active_document command_manager.js:147
get_context command_manager.js:90
is_visible command_manager.js:98
isVisible command_manager.js:16
isVisible index.js:311
get commandpalette.js:1076
c commandpalette.js:761
r commandpalette.js:732
onUpdateRequest commandpalette.js:248
processMessage widget.js:503
w index.js:400
n index.js:123
C index.js:436
command_manager.js:103:29
is_visible failed Error: "Cell not found in cell_line_map"
transform_from_notebook_to_root notebook.js:52
context_from_active_document command_manager.js:147
get_context command_manager.js:90
is_visible command_manager.js:98
isVisible command_manager.js:16
isVisible index.js:311
get commandpalette.js:1076
c commandpalette.js:761
r commandpalette.js:732
onUpdateRequest commandpalette.js:248
processMessage widget.js:503
w index.js:400
n index.js:123
C index.js:436
command_manager.js:103:29
is_visible failed Error: "Cell not found in cell_line_map"
transform_from_notebook_to_root notebook.js:52
context_from_active_document command_manager.js:147
get_context command_manager.js:90
is_visible command_manager.js:98
isVisible command_manager.js:16
isVisible index.js:311
get commandpalette.js:1076
c commandpalette.js:761
r commandpalette.js:732
onUpdateRequest commandpalette.js:248
processMessage widget.js:503
w index.js:400
n index.js:123
C index.js:436
command_manager.js:103:29

@krassowski
Copy link
Member

Thanks for reporting this! My first guess would be that the server extension has not been auto-enabled. What is your output for:

jupyter serverextension list

Could you also try:

jupyter serverextension enable --sys-prefix --py jupyter_lsp

please? Let me know if it helps!

@robna
Copy link
Author

robna commented Apr 20, 2020

Thanks for your suggestions! I get a ModuleNotFoundError No module named 'jupyter_lsp'

jupyter serverextension list

config dir: /etc/jupyter
    ipyparallel.nbextension  enabled 
    - Validating...
      ipyparallel.nbextension  OK
    jupyterlab  enabled 
    - Validating...
      jupyterlab 2.1.0 OK
sudo jupyter serverextension enable --sys-prefix --py jupyter_lsp
[sudo] password:

Traceback (most recent call last):
  File "/usr/bin/jupyter-serverextension", line 11, in <module>
    load_entry_point('notebook==6.0.3', 'console_scripts', 'jupyter-serverextension')()
  File "/usr/lib/python3.8/site-packages/jupyter_core/application.py", line 270, in launch_instance
    return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
  File "/usr/lib/python3.8/site-packages/traitlets/config/application.py", line 664, in launch_instance
    app.start()
  File "/usr/lib/python3.8/site-packages/notebook/serverextensions.py", line 294, in start
    super(ServerExtensionApp, self).start()
  File "/usr/lib/python3.8/site-packages/jupyter_core/application.py", line 259, in start
    self.subapp.start()
  File "/usr/lib/python3.8/site-packages/notebook/serverextensions.py", line 211, in start
    self.toggle_server_extension_python(arg)
  File "/usr/lib/python3.8/site-packages/notebook/serverextensions.py", line 200, in toggle_server_extension_python
    m, server_exts = _get_server_extension_metadata(package)
  File "/usr/lib/python3.8/site-packages/notebook/serverextensions.py", line 328, in _get_server_extension_metadata
    m = import_item(module)
  File "/usr/lib/python3.8/site-packages/traitlets/utils/importstring.py", line 42, in import_item
    return __import__(parts[0])
ModuleNotFoundError: No module named 'jupyter_lsp'

@robna
Copy link
Author

robna commented Apr 20, 2020

actually, I think the server-extension is called jupyter-lsp (dash instead of underscore), isn't it?
Anyways, the output is the same...

Command Line Output
sudo jupyter serverextension enable --sys-prefix --py jupyter-lsp
Traceback (most recent call last):
  File "/usr/bin/jupyter-serverextension", line 11, in 
    load_entry_point('notebook==6.0.3', 'console_scripts', 'jupyter-serverextension')()
  File "/usr/lib/python3.8/site-packages/jupyter_core/application.py", line 270, in launch_instance
    return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
  File "/usr/lib/python3.8/site-packages/traitlets/config/application.py", line 664, in launch_instance
    app.start()
  File "/usr/lib/python3.8/site-packages/notebook/serverextensions.py", line 294, in start
    super(ServerExtensionApp, self).start()
  File "/usr/lib/python3.8/site-packages/jupyter_core/application.py", line 259, in start
    self.subapp.start()
  File "/usr/lib/python3.8/site-packages/notebook/serverextensions.py", line 211, in start
    self.toggle_server_extension_python(arg)
  File "/usr/lib/python3.8/site-packages/notebook/serverextensions.py", line 200, in toggle_server_extension_python
    m, server_exts = _get_server_extension_metadata(package)
  File "/usr/lib/python3.8/site-packages/notebook/serverextensions.py", line 328, in _get_server_extension_metadata
    m = import_item(module)
  File "/usr/lib/python3.8/site-packages/traitlets/utils/importstring.py", line 42, in import_item
    return __import__(parts[0])
ModuleNotFoundError: No module named 'jupyter-lsp'

@krassowski
Copy link
Member

No, it should be with an underscore. Not sure why it does not pick up jupyter-lsp, it is in your pip-installed packages... Maybe you operate in different virtual environments?

Wait, you seem to use sudo... This might be the culprit if packages are installed locally and jupyter is not able to pick them as it is installed system-wide. The only guess I currently have is to try running jupyter without sudo (if you ran it as such) or try instaling jupyter-lsp globally with

sudo pip install jupyter-lsp

(but I do not recommend it security-wise!)

@robna
Copy link
Author

robna commented Apr 21, 2020

I run jupyter lab as [user@pc ~]$ jupyter lab, so without sudo. Also python packages I install just with pip install without sudo
Only for things that have to do with changes jupyter extensions (e.g. jupyter labextension install ... or the jupyter serverextension enable you recommended) I get a permission denied error when I tr without sudo.
So far I don't have so many python projects running (I am not a developer and I am just getting started), so I just installed python, jupyter lab, and related software through my package manager (pacman) which also brought some of my python packages as dependencies. And this would then of course be installed as using pacman with sudo.
When I need a specific python package I use pip install, as they are often not available in the pacman repositories. I don't know if this kind of source mixing is creating my problems here.
But so far everything should be in the same environment, as I only have one:

jupyter kernelspec list
Available kernels:
  python3    /usr/share/jupyter/kernels/python3

@krassowski
Copy link
Member

Just a guess:

jupyter serverextension enable --py jupyter_lsp

It does seem to be related to how the JupyterLab was installed vs how the extension was installed...

Could you also try to re-install jupyter-lsp (without or with sudo and double-check if there are any messages/to where is it installed? Maybe it was a faulty installation?)

(sudo) pip install jupyter-lsp

@robna
Copy link
Author

robna commented Apr 27, 2020

Thanks a lot! That solved it for me:

jupyter serverextension enable --py jupyter_lsp

Enabling: jupyter_lsp
- Writing config: /home/nibor/.jupyter
    - Validating...
      jupyter_lsp 0.8.0 OK

So I didn't need to try re-installing jupyter-lsp with or without sudo permissions.
Now I have:
Screenshot-20200427133250-229x418

@robna robna closed this as completed Apr 27, 2020
@krassowski
Copy link
Member

Perfect! Thank you for giving it another try, and getting back to us with the results. Enjoy the extension and please let me know if you have any feedback!

@jhgoebbert
Copy link

Hello krassowski,
perhaps you can mention this in the README.md: jupyter serverextension enable --py jupyter_lsp
I also forgot about it and figured out the hard way :)

@krassowski
Copy link
Member

Well, it should not be required - the extension should auto-enable when being installed... but it would not hurt either!

@jhgoebbert
Copy link

That´s strange. But perhaps it is related to our system-wide installation or the "--no-build" flag in the install command, that this is not possible for our setup.

@anatoly-khomenko
Copy link

Hello Michal @krassowski ,

I had the same issue with docker image-based installation.
FROM jupyter/scipy-notebook:latest

Restarting the Docker container helped me to get rid of this error and made jupyter-lsp extension work.
So I believe it is necessary to restart JupyterLab after completion of the installation procedure.
This might be natural when you just run it from console, but not evident when one uses Docker.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants