0

recently, I am having problems starting a qtconsole from an jupyter ipython notebook. The problem seems to be caused because I have ipyparallel in installed. I get the following error code:

get_ipython().run_line_magic('qtconsole', '')

File /usr/lib/python3.12/site-packages/IPython/core/interactiveshell.py:2480, in InteractiveShell.run_line_magic(self, magic_name, line, _stack_depth) kwargs['local_ns'] = self.get_local_scope(stack_depth)

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

if "ipyparallel" in sys.modules: from ipyparallel import bind_kernel bind_kernel() try: connect_qtconsole(argv=arg_split(arg_s, os.name == "posix"))

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.