<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
Until someone more knowledgeable replies, this is presumably because InteractiveShellEmbed ultimately inherits from SingletonConfigurable, which only allows one instance to be created. There is some code in embed.py, which saves an existing instance, clears
 it, and allows another to be created:
<div><br>
</div>
<div>
<div>    saved_shell_instance = InteractiveShell._instance</div>
<div>    if saved_shell_instance is not None:</div>
<div>        cls = type(saved_shell_instance)</div>
<div>        cls.clear_instance()</div>
<div>    shell = InteractiveShellEmbed.instance(**kwargs)</div>
<div><br>
</div>
<div>If something like that is not in your current code, perhaps you need to add it.</div>
<div><br>
</div>
<div>Ray</div>
<div><br>
<div>
<div>On Jan 11, 2015, at 9:37 AM, Darren Dale <<a href="mailto:dsdale24@gmail.com">dsdale24@gmail.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">Hello,
<div><br>
</div>
<div>I'm working on an application with an in-process qt console, following the example at <a href="https://github.com/ipython/ipython/blob/master/examples/Embedding/inprocess_qtconsole.py">https://github.com/ipython/ipython/blob/master/examples/Embedding/inprocess_qtconsole.py</a>
 . I would also like to be able to use the `embed` function occassionally for troubleshooting other parts of the application that are unrelated to the in-process qt console. However, calling embed yields an error: "IPython.config.configurable.MultipleInstanceError:
 Multiple incompatible subclass instances of InteractiveShellEmbed are<span style="font-size:13.1999998092651px"> being created."  I can reproduce this with the inprocess example by adding a call to `embed()` just before the call to `</span>guisupport.start_event_loop_qt4(app)`.
 Any ideas how to make this work?</div>
<div><br>
</div>
<div>Thanks,<br>
Darren</div>
_______________________________________________<br>
IPython-dev mailing list<br>
<a href="mailto:IPython-dev@scipy.org">IPython-dev@scipy.org</a><br>
http://mail.scipy.org/mailman/listinfo/ipython-dev<br>
</blockquote>
</div>
<br>
<div apple-content-edited="true">-- <br>
Ray Osborn, Senior Scientist<br>
Materials Science Division<br>
Argonne National Laboratory<br>
Argonne, IL 60439, USA<br>
Phone: +1 (630) 252-9011<br>
Email: <a href="mailto:ROsborn@anl.gov">ROsborn@anl.gov</a><br>
<br>
</div>
<br>
</div>
</div>
</body>
</html>