-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
Completion removes previous variable name #7397
Comments
Moved the output here, comment was too long... Command Line Output[D 2024-06-11 18:29:08.970 ServerApp] Searching ['/home/XXX/anaconda3/envs/jlab-test/etc/jupyter', '/home/XXX/.jupyter', '/home/XXX/.local/etc/jupyter', '/usr/local/etc/jupyter', '/etc/jupyter'] for config files [D 2024-06-11 18:29:08.970 ServerApp] Looking for jupyter_config in /etc/jupyter [D 2024-06-11 18:29:08.970 ServerApp] Looking for jupyter_config in /usr/local/etc/jupyter [D 2024-06-11 18:29:08.970 ServerApp] Looking for jupyter_config in /home/XXX/.local/etc/jupyter [D 2024-06-11 18:29:08.970 ServerApp] Looking for jupyter_config in /home/XXX/.jupyter [D 2024-06-11 18:29:08.970 ServerApp] Looking for jupyter_config in /home/XXX/anaconda3/envs/jlab-test/etc/jupyter [D 2024-06-11 18:29:08.971 ServerApp] Looking for jupyter_server_config in /etc/jupyter [D 2024-06-11 18:29:08.971 ServerApp] Looking for jupyter_server_config in /usr/local/etc/jupyter [D 2024-06-11 18:29:08.971 ServerApp] Looking for jupyter_server_config in /home/XXX/.local/etc/jupyter [D 2024-06-11 18:29:08.971 ServerApp] Looking for jupyter_server_config in /home/XXX/.jupyter [D 2024-06-11 18:29:08.971 ServerApp] Looking for jupyter_server_config in /home/XXX/anaconda3/envs/jlab-test/etc/jupyter [D 2024-06-11 18:29:08.973 ServerApp] Paths used for configuration of jupyter_server_config: /etc/jupyter/jupyter_server_config.json [D 2024-06-11 18:29:08.973 ServerApp] Paths used for configuration of jupyter_server_config: /usr/local/etc/jupyter/jupyter_server_config.json [D 2024-06-11 18:29:08.973 ServerApp] Paths used for configuration of jupyter_server_config: /home/XXX/.local/etc/jupyter/jupyter_server_config.json [D 2024-06-11 18:29:08.974 ServerApp] Paths used for configuration of jupyter_server_config: /home/XXX/.jupyter/jupyter_server_config.json [D 2024-06-11 18:29:08.974 ServerApp] Paths used for configuration of jupyter_server_config: /home/XXX/anaconda3/envs/jlab-test/etc/jupyter/jupyter_server_config.d/jupyter-lsp-jupyter-server.json /home/XXX/anaconda3/envs/jlab-test/etc/jupyter/jupyter_server_config.d/jupyter_server_terminals.json /home/XXX/anaconda3/envs/jlab-test/etc/jupyter/jupyter_server_config.d/jupyterlab.json /home/XXX/anaconda3/envs/jlab-test/etc/jupyter/jupyter_server_config.d/notebook.json /home/XXX/anaconda3/envs/jlab-test/etc/jupyter/jupyter_server_config.d/notebook_shim.json /home/XXX/anaconda3/envs/jlab-test/etc/jupyter/jupyter_server_config.json [D 2024-06-11 18:29:08.977 ServerApp] Extension package notebook took 0.0000s to import [D 2024-06-11 18:29:08.985 ServerApp] Extension package jupyter_lsp took 0.0078s to import [D 2024-06-11 18:29:08.988 ServerApp] Extension package jupyter_server_terminals took 0.0029s to import [D 2024-06-11 18:29:08.988 ServerApp] Extension package jupyterlab took 0.0000s to import [D 2024-06-11 18:29:09.033 ServerApp] Paths used for configuration of page_config: /home/XXX/anaconda3/envs/jlab-test/etc/jupyter/labconfig/page_config.json [D 2024-06-11 18:29:09.033 ServerApp] Paths used for configuration of page_config: |
Thank you for opening this issue @spreiter! Could you share if you experience this issue in JupyterLab as well? If so, a fix would likely need to be implemented in JupyterLab so that it could be reflected in Notebook 7, in which case it would be best to open this issue in the JupyterLab repository. |
Hi @RRosio , yes, the problem is also present in JupyterLab. But I am a bit confused about where to report it. I read https://jupyterlab.readthedocs.io/en/latest/getting_started/issue.html and there it is stated that if the problem also occurs in Jupyter Classic, I shall report it here and not at JupyterLab.
I can of course also open it there, if you think, this fits better. Best, |
Thank you for your reply @spreiter! The code for completion is in actually in the JupyterLab repo. In the documentation, the term |
I see. Thanks for moving the ticket, @RRosio :) |
Description
When I use completion on an already indented line, the first part is removed. When I instead try the same, where the line begins at position 0, it works at expected. Below I recorded my screen to show the problem.
jupyter-completion-issue.mov
Tested it with a virtual env and conda. Also happens on RHEL 7 on another machine.
Only when using my macbook with Python 3.12 manually installed, it works as expected.
Reproduce
notebook
package manually in the same command (otherwise I can not switch to the classic notebook).The problem persist in Jupyter Lab and the classic notebook. I have this behavior for quite some time. I also removed the
~/.jupyter
folder and recreated the config. But so far, everything without success. When I do the same commands in IPython, everything works just fine.Expected behavior
Keep the previous object/variable
Context
Troubleshoot Output
The text was updated successfully, but these errors were encountered: