Portable Thonny on a flash-stick

1,775 views
Skip to first unread message

Aivar Annamaa

unread,
Aug 30, 2017, 4:01:14 AM8/30/17
to thonny
Hi everyone!

Some people have asked me how to create a portable version of Thonny which can be stored in a USB stick and which keeps configuration files and virtual environment together with program files.

I wrote a short guide for this: https://bitbucket.org/plas/thonny/wiki/PortableVersion

best regards,
Aivar

Didier Dorange-Pattoret

unread,
Sep 30, 2017, 9:00:25 AM9/30/17
to thonny
Hi everyone !

I tried to create a portable version as recommanded with a customize.py file in the good location.
But, if a plug my usb drive in another computer and launch Thonny, I get a message : "you'll using another interpreter etc ...".
In that case, all packages are lost (numpy, matplotlib, etc ...).

I tried too with a configuration.ini file in user_dir_template like explained here : https://bitbucket.org/plas/thonny/issues/280/increase-portability-of-thonny but without success.

Is there any way to get a real portable thonny ie witch keeps packages when the computer is changed ?

Thanks for Thonny and your help.

Didier.

Aivar Annamaa

unread,
Oct 4, 2017, 10:48:16 AM10/4/17
to thonny
Hi!

Looks like I forgot the fact that virtual environment (which Thonny uses by default) operates with absolute paths.

I created an issue on Bitbucket for making a portable and/or centrally installable version of Thonny. It already has great discussion going on, so I invite everyone interested to join: https://bitbucket.org/plas/thonny/issues/346/create-and-publish-a-portable-windows

best regards,
Aivar

Didier Dorange-Pattoret

unread,
Oct 5, 2017, 2:26:24 AM10/5/17
to thonny
Thank you for your help.
I joined this discussion.
Thanks for Tonny.


Le mercredi 30 août 2017 10:01:14 UTC+2, Aivar Annamaa a écrit :

David Phillips

unread,
Nov 11, 2017, 1:13:49 AM11/11/17
to thonny
since the school that I work at can't seem to install python, I simply used my usb drive as the install directory and copied and pasted the resulting folder into the student#s shared area. Whenever anyone loads thonny it loads the last saved file, Is this what you wanted? If so, it seems to be happening by default :)

Aivar Annamaa

unread,
Nov 11, 2017, 1:17:35 AM11/11/17
to thonny
The name of the last used file is saved into per-user configuration file. If your students use same user account, then this behavior is expected.

best regards,
Aivar
Reply all
Reply to author
Forward
0 new messages