Skip to content

ipyparallel causing problem in calling a qtconsole from an ipython jupyter notebook #922

Closed
ipython/ipykernel
#1315
@kdere

Description

@kdere

With the last several months, I have problems starting a qtconsole from a jupyter ipython notebook. The problem seems to be caused because I have ipyparallel imported. I get the following error code:

`get_ipython().run_line_magic('qtconsole', '')
`
File /usr/lib/python3.12/site-packages/IPython/core/interactiveshell.py:2480,


`with self.builtin_trap: result = fn(*args, **kwargs)
`
File /usr/lib/python3.12/site-packages/ipykernel/zmqshell.py:407, in KernelMagics.qtconsole(self, arg_s)

`if "ipyparallel" in sys.modules:
    from ipyparallel import bind_kernel
    bind_kernel()
    try:
        connect_qtconsole(argv=arg_split(arg_s, os.name == "posix"))
`
File /usr/lib/python3.12/site-packages/ipyparallel/init.py:51, in bind_kernel(**kwargs)

`     else:
        return app.bind_kernel(**kwargs)
        raise RuntimeError("bind_kernel must be called from an IPEngine instance")
`
RuntimeError: bind_kernel must be called from an IPEngine instance

I have not found anyone else having this problem.

thanks

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