These are chat archives for spyder-ide/public

23rd
Apr 2019
Mark B. Campanelli
@campanelli-resonon
Apr 23 16:58
As part of a Python 2->3 conversion, I'm considering embedding Spyder as a replacement for Python Toolkit (PTK) in a WX (4.0/Phoenix) based Python application on Windows. I'm having a lot of trouble finding examples of how this might be done.
CAM Gerlach
@CAM-Gerlach
Apr 23 17:17
@Gypsaman Spyder is Qt based (via QtPy/PyQt, though it can theoretically be adapted to PySide2/QtfP once that's reasonably stable and complete), not wx based, so you can't really embed Spyder itself easily in a wx-based application. I'm not sure exactly what the usecase would be for embedding the full Spyder application (vs re-using its individual widgets), as opposed to just extending it via its Plugin system or a modified fork (like e.g. Tellurium does). However, not sure if its what you're looking for since it is isn't really "embedding Spyder", but you can use our modular spyder-kernels package to start kernels in another Python environment, installation or even a remote machine, and connect to them locally or remotely (via builtin SSH support) in Spyder, with the full suite of Spyder features available.
Mark B. Campanelli
@campanelli-resonon
Apr 23 19:28
@CAM-Gerlach Thanks for the info. I'm sorry if this question is not really a Spyder one: Our current application runs across several Python processes, such as the GUI, a hardware handler, a data handler, and an inter-process message handler. For true client interactivity (instead of just point-in-time observation), should I be thinking about starting each one of these processes itself as an IPython kernel as opposed to "attaching" an IPython kernel to each one?
CAM Gerlach
@CAM-Gerlach
Apr 23 19:41
I'm honestly not sure about that; its rather outside my domain of expertise, sorry.
paulgureghian
@paulgureghian_gitlab
Apr 23 22:19
Not sure if this is a Spyder issue or not.
Screenshot : https://imgur.com/a/iD828Pc
CAM Gerlach
@CAM-Gerlach
Apr 23 22:52
@paulgureghian_gitlab Nope; from what little you showed me, it appears a common user error many beginners make, shadowing the module you want to import with a file named the same thing, so instead of importing the desired module, you're instead importing your own file.