Skip to content

Can not connect to existing kernel #474

@pati-ni

Description

@pati-ni

Possibly related to #464.

#+begin_src python :async yes :session ./gpu-ssh.json
import scanpy
print("Hello World!")
#+end_src

Evaluating the source block gives me this:

org-babel-jupyter-session-key: Need a valid session and a kernel to form a key

If I add a :kernel argument like :kernel python3, then I can see the correct *jupyter-repl[python 3.7.11]-gpu-ssh.json* buffer but the code is not being sent there, possibly because it starts in the background a new python3 local session. In that case, it shows that it can not import my package despite the package being installed in the :session

It seems that the kernel argument should not be mandatory and up to recent version of the package it was not but now something has changed.

Can the changes be rolled back or provide a workaround until a fix?

Installed version: jupyter-20230608.1504

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions