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

multikernelmanager update_env error #990

Open
sky-fun opened this issue Oct 25, 2023 · 3 comments
Open

multikernelmanager update_env error #990

sky-fun opened this issue Oct 25, 2023 · 3 comments

Comments

@sky-fun
Copy link

sky-fun commented Oct 25, 2023

run jupyter lab in remote server jupyter lab --ip myip --port 8989 --allow-root
when open link in local browser ,it shows Error Starting Kernel Unhandled error

Traceback (most recent call last):
  File "/opt/apps/local/lib64/python3/dist-packages/tornado/web.py", line 1786, in _execute
    result = await result
  File "/usr/local/softwares/miniconda3/envs/notebook/lib/python3.8/site-packages/jupyter_server/services/sessions/handlers.py", line 172, in patch
    await sm.update_session(session_id, **changes)
  File "/usr/local/softwares/miniconda3/envs/notebook/lib/python3.8/site-packages/jupyter_server/services/sessions/sessionmanager.py", line 469, in update_session
    self.kernel_manager.update_env(kernel_id=kernel_id, env=self.get_kernel_env(path, name))
  File "/usr/local/softwares/miniconda3/envs/notebook/lib/python3.8/site-packages/jupyter_client/multikernelmanager.py", line 226, in update_env
    self._kernels[kernel_id].update_env(env)
TypeError: update_env() takes 1 positional argument but 2 were given
@paridee
Copy link

paridee commented Oct 25, 2023

I get the same error within a JupyterHub environment, as temporary workaround I downgraded the following 2 libraries and seems to work:
jupyter_client==8.3.0
jupyter_server==2.7.0

waiting for a fix...

@krassowski
Copy link
Member

Hi all, thanks for the report, this is also tracked in jupyter-server/jupyter_server#1345.

@gmocquet
Copy link

Same error here

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