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

jupyter_lsp - different location of jupyter-lsp-notebook.json between 2.2.2 and 2.2.3 #1068

Closed
frenzymadness opened this issue Mar 5, 2024 · 3 comments · Fixed by #1069
Closed

Comments

@frenzymadness
Copy link
Contributor

This is probably more of a question than a bug report. If you install jupyter_lsp 2.2.2, jupyter-lsp-notebook.json is in two different locations (in a virtual environment):

./lib/python3.12/site-packages/jupyter_lsp/etc/jupyter-lsp-notebook.json
./etc/jupyter/jupyter_notebook_config.d/jupyter-lsp-notebook.json

with 2.2.3 it's just in

./lib/python3.12/site-packages/jupyter_lsp/etc/jupyter-lsp-notebook.json

I maintain this as an RPM package and for version 2.2.2 I moved the config file from its default install location /usr/etc to /etc.

So my question is: Should I move the config files to /etc or leave them in site-packages?

@krassowski
Copy link
Member

Yes, in 2.2.3 we partially modernized the setup script/config removing data_files from setup.py:

  setuptools.setup(
-     data_files=[
-         (
-             "etc/jupyter/jupyter_server_config.d",
-             ["jupyter_lsp/etc/jupyter-lsp-jupyter-server.json"],
-         ),
-         (
-             "etc/jupyter/jupyter_notebook_config.d",
-             ["jupyter_lsp/etc/jupyter-lsp-notebook.json"],
-         ),
-     ],
  )

and adding it in setup.cfg (still not pyproject.toml, but some progress):

+ [options.data_files]
+ etc/jupyter/jupyter_server_config.d = jupyter_lsp/etc/jupyter-lsp-jupyter-server.json

Now, you can see that jupyter-lsp-notebook.json is no longer there, only jupyter-lsp-jupyter-server.json. This is because we no longer support the old notebook server and require a modern jupyter-server.

The fact that jupyter_lsp/etc/jupyter-lsp-notebook.json was not deleted appears to be an omission. I think we should simply remove it in the next patch release.

@frenzymadness
Copy link
Contributor Author

Oh, I see. I thought that both JSONs are the same but you are right that the jupyter-lsp-jupyter-server.json is still installed in the same location. Thank you for the quick reply.
We can keep this open as a reminder to remove the old JSON.

@krassowski
Copy link
Member

jupyter-lsp 2.2.4 should have solved it, please reopen if there is still a problem. Thanks!

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

Successfully merging a pull request may close this issue.

2 participants