Export Spyder configuration to different machine

1,821 views
Skip to first unread message

SN1984jm

unread,
Mar 12, 2014, 1:13:31 PM3/12/14
to spyd...@googlegroups.com
Hi,

Over time I configured my Spyder version on one pc just the way I like it, and now I would like to install Spyder somewhere else with the same settings.
Is there a way to export configurations like syntax highlighting, background colours and fonts?

I'm using Linux (Kubuntu) and Spyder v2.2.1.

Adrian Klaver

unread,
Mar 13, 2014, 10:50:38 AM3/13/14
to spyd...@googlegroups.com
On 03/12/2014 10:13 AM, SN1984jm wrote:
> Hi,
>
> Over time I configured my Spyder version on one pc just the way I like
> it, and now I would like to install Spyder somewhere else with the same
> settings.
> Is there a way to export configurations like syntax highlighting,
> background colours and fonts?

You could try copying over the spyder.ini file. Should be in ~.spyder2/
directory.

>
> I'm using Linux (Kubuntu) and Spyder v2.2.1.
>

--
Adrian Klaver
adrian...@gmail.com

SN1984jm

unread,
Mar 14, 2014, 11:45:35 AM3/14/14
to spyd...@googlegroups.com
I only see the following files:

monitor.log  spyder.lock  template.py

and a db folder.

The template.py might be interesting, but it is empty. Maybe I can export my settings as an ini file, or maybe that template file?

Adrian Klaver

unread,
Mar 14, 2014, 1:04:12 PM3/14/14
to spyd...@googlegroups.com
On 03/14/2014 08:45 AM, SN1984jm wrote:
> I only see the following files:
>
> monitor.log spyder.lock template.py
>
> and a db folder.
>
> The template.py might be interesting, but it is empty. Maybe I can
> export my settings as an ini file, or maybe that template file?

I would say it is somewhere in your home directory. I know some
distributions are stuffing everything in ~.config/ so you might look
there. Otherwise do a find -iname spyder.ini in your home directory.

>



--
Adrian Klaver
adrian...@gmail.com
Message has been deleted

Roberto Rosati

unread,
Mar 15, 2014, 6:43:10 PM3/15/14
to spyd...@googlegroups.com
Sorry, there was a typo in my last post!

I meant:

If you want, try in a Spyder console:

from spyderlib.baseconfig import get_conf_path
get_conf_path()

This should return the directory that Spyder is using to save the spyder.ini file.

Just take a quick look at it before grafting, there are a few entries which might have to be changed, i.e. locations of system files.

SN1984jm

unread,
Apr 4, 2014, 6:23:35 AM4/4/14
to spyd...@googlegroups.com
Thanks for all the suggestions. I tried them all, there does not seem to be any spyder.ini in my home directory. Not even in the path I get from get_conf_path().
Any other suggestions? Is there anything I need to do inside Spyder first maybe?

Adrian Klaver

unread,
Apr 5, 2014, 4:32:40 PM4/5/14
to spyd...@googlegroups.com
On 04/04/2014 03:23 AM, SN1984jm wrote:
> Thanks for all the suggestions. I tried them all, there does not seem to
> be any spyder.ini in my home directory. Not even in the path I get from
> get_conf_path().

So what is the path returned by get_conf_path()?

If there is a path returned what is the listing for the directory when
you do ls -al?

> Any other suggestions? Is there anything I need to do inside Spyder
> first maybe?
>


--
Adrian Klaver
adrian...@aklaver.com

Jeroen Meidam

unread,
Apr 7, 2014, 5:49:03 AM4/7/14
to spyd...@googlegroups.com
I just realised, when you mentioned ls -a, that I did not even check for hidden files. There is a hidden .spyder.ini.
I presume that is the file I was looking for? It does indeed have many settings. I'll try and implement that on my other pc soon.
Thanks again.




--
You received this message because you are subscribed to a topic in the Google Groups "spyder" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/spyderlib/0A6v9Ekrup8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to spyderlib+unsubscribe@googlegroups.com.
To post to this group, send email to spyd...@googlegroups.com.
Visit this group at http://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/d/optout.

Adrian Klaver

unread,
Apr 7, 2014, 9:38:11 AM4/7/14
to spyd...@googlegroups.com
On 04/07/2014 02:49 AM, Jeroen Meidam wrote:
> I just realised, when you mentioned ls -a, that I did not even check for
> hidden files. There is a hidden .spyder.ini.
> I presume that is the file I was looking for? It does indeed have many
> settings. I'll try and implement that on my other pc soon.

Yes, though in newer versions of Spyder it has been renamed to
spyder.ini, no leading dot. So you might need to rename it for it to be
seen.

> Thanks again.
>
>


--
Adrian Klaver
adrian...@aklaver.com

Jeroen Meidam

unread,
Apr 8, 2014, 4:57:38 AM4/8/14
to spyd...@googlegroups.com
I can confirm it works for my version (2.2.1).




--
Adrian Klaver
adrian...@aklaver.com

Reply all
Reply to author
Forward
0 new messages