Re: Embedded Spyder

176 views
Skip to first unread message

Mac117

unread,
Sep 25, 2012, 10:58:44 AM9/25/12
to spyd...@googlegroups.com
Someone?

On Thursday, August 9, 2012 12:41:50 PM UTC-4, Mac117 wrote:
Hi guys,

Is there any tutorials on how to embed spyder on another application?
I work for an engineering company and we are thinking about migration from our current language to python. The only problem is finding a decent IDE that we can embed. Spyder seems to do the job, but I cannot find anythin on how to embed it or how to debug/attach a running script.

Cheers,

Mac.

Carlos Córdoba

unread,
Sep 25, 2012, 12:47:16 PM9/25/12
to spyd...@googlegroups.com
Hi Mac,

Spyder is full application, so I don't think it's possible to embed it in another one. What exactly do you want to do? and why do you need to "embed an IDE" instead of using it as any other app?

Cheers,
Carlos

El 25/09/12 09:58, Mac117 escribió:
--
You received this message because you are subscribed to the Google Groups "spyder" group.
To view this discussion on the web visit https://groups.google.com/d/msg/spyderlib/-/JAlne1YwOXUJ.
To post to this group, send email to spyd...@googlegroups.com.
To unsubscribe from this group, send email to spyderlib+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/spyderlib?hl=en.

Tiago Macarios

unread,
Sep 25, 2012, 1:17:07 PM9/25/12
to spyd...@googlegroups.com
Hi Carlos,

I have another application (CAE/CAD) which currently uses a custom language to create scripts for customization. We are really eager to switch to Python and Spyder right now would be the perfect match (matrix support and "matlab like GUI"). If you have another suggestion let me know.

Our current custom language works embedded, for example: The user has a model one and he want to change some geometric parameters or get a matrix from the solver. He just go to menu > Script and he can launch a IDE and create his own script. The main ideia is that he would launch Spyder without the need to close the model, reopen in Spyder, so his job, go back to the CAD application. Also, doing it embedded enables the user to "see" the changes in the 3D window in real time. I think you get the idea... (If no let me know)

Currently we have swig wrappers for our API and they work flawlessly. I am able to call python scripts using a DLL, but this is not as fluid as one would expect since the end user has to debug the script on a run-crash environemnt... Our development team has been using eclipse remote debugging facilities which work fine, but ,as I said, we are really looking forward for something we could embed.

Thanks,

David

unread,
Sep 27, 2012, 1:51:30 PM9/27/12
to spyd...@googlegroups.com
Hello Mac,

Perhaps embedding IPython into your application would be helpful - this is what spyder does to provide it's consoles. See http://ipython.org/ipython-doc/dev/interactive/reference.html#embedding-ipython

Of course this doesn't give you a text editor, but it does have some very powerful debugging features. And projects such as qscintilla (http://www.riverbankcomputing.co.uk/static/Docs/QScintilla2/index.html) provide programming text editor components which hopefully are not too much of a pain to embed in an application. QScintilla is what spyder originally used for its editor, so some of the devs here may be able to confirm how easy it is to embed.

regards
David
Reply all
Reply to author
Forward
0 new messages