These are chat archives for spyder-ide/public

29th
Mar 2019
Aryamaan08
@Aryamaan08
Mar 29 10:28
Hello!
Massimo Pinto
@massimopinto
Mar 29 10:39
Good morning, I came across to a post on StackOverflow from last summer (2018) where a user was trying to load a .spydata file into his python script. That is, without Importing Data from the Variable Explorer Panel, but specifying this from within the script itself, much as one would do when importing a module. I am on Spyder 3.3.2 and I am wondering whether this item has been considered any further. Thanks!
CAM Gerlach
@CAM-Gerlach
Mar 29 13:30
@Aryamaan08 Hello; how can we help you with Spyder?
CAM Gerlach
@CAM-Gerlach
Mar 29 13:55
Hey @massimopinto . First off, I recommend you upgrade to Spyder 3.3.3 and Spyder-Kernels 0.4.2, since we've made some substantial improvements to robustly loading and saving .spydata files. With regard to your question, a .spydata file is basically a tar with a particular structure, containing a pickle file of all the normal Python objects minus any top-level or nested numpy arrays, and .npy files for each numpy array present either at the top level or nested inside other saved objects. You can save and load them with spyder_kernels.utils.iofuncs.save_dictionary / load_dictionaryrespectively.
jproy
@jproy
Mar 29 14:36
Hi everybody. I can't find where to change english to french in 3.3.3...
CAM Gerlach
@CAM-Gerlach
Mar 29 14:37
@jproy You do this in your OS-level settings, and Spyder will use the appropriate language on startup.
jproy
@jproy
Mar 29 14:37
Please elaborate. I was in french in 3.3.2 and no more in 3.3.3
Massimo Pinto
@massimopinto
Mar 29 14:38
Dear @CAM-Gerlach, thank you for responding to my question. I shall first upgrade to 3.3.3 and then look into the use of pickle to extract the names of all the objects saved there. Cheers.
Pullooo
@Pullooo
Mar 29 14:38
Hi guys, does anyone know how to open multiple data frames from the variable explorer window in spyder?
Open and view them all at the same time.
CAM Gerlach
@CAM-Gerlach
Mar 29 14:39
@massimopinto As I mentioned above, it would probably be much better to use the already-existing functions I stated to read and save such objects, rather than rolling your own.
jproy
@jproy
Mar 29 14:40
@CAM-Gerlach I have the following in my .bash_profile : export LC_ALL = 'fr_FR.UTF-8'
@CAM-Gerlach I remember there was a menu Advanced Settingsbefore to change language in Spyder but I can't find it anymore.
CAM Gerlach
@CAM-Gerlach
Mar 29 14:42
@Pullooo Double click one data frame, then double-click the other. They all open in separate viewers, so there isn't much to be gained currently from a batch method to open many at once.
jproy
@jproy
Mar 29 14:53
@CAM-Gerlach I added export LANG='fr_FR.UTF8' and export LC_ALL='fr_FR.UTF8' in my .bashrc. Always in english.
@CAM-Gerlach That is what the Spyder documentation says.
CAM Gerlach
@CAM-Gerlach
Mar 29 14:54
@ccordoba12 Any ideas? It still works for you in Spanish, right? @jproy Can you try another language just to check? I know there were some minor updates in the French translation lately...
jproy
@jproy
Mar 29 14:55
@CAM-Gerlach What should it be in spanish ?
@CAM-Gerlach I tried with es_ES.UTF8, always english...
Massimo Pinto
@massimopinto
Mar 29 14:59
@CAM-Gerlach oh yes of course, also considering that I am a spyder newbie. I am at from spyder_kernels.utils.iofuncs import load_dictionary load_dictionary(wrk_dir+"chambers_measurements.spydata") but I am not there yet. It may perhaps work after I upgrade. Thank you!
Pullooo
@Pullooo
Mar 29 15:01
@CAM-Gerlach thanks. That didnt work on the Mac, but holding down cmd while opening them seems to do the trick
jproy
@jproy
Mar 29 15:02
@CAM-Gerlach by the way, I am on Mac...
jproy
@jproy
Mar 29 15:10
@CAM-Gerlach The command printenvat the terminal gives correctly LANG='fr_FR.UTF-8. So what ?
CAM Gerlach
@CAM-Gerlach
Mar 29 15:11
@jproy I don't know, that's why I asked @ccordoba12 . He is way more informed and involved in i18n than I.
jproy
@jproy
Mar 29 15:12
@CAM-Gerlach The problem is that no test seems to be done on the Mac ?
@CAM-Gerlach To my knowledge of course. Is your Mac programmer available now ?
CAM Gerlach
@CAM-Gerlach
Mar 29 15:14
I can ask.
Thank you for your patience.
Carlos Cordoba
@ccordoba12
Mar 29 15:21
@jproy, the option to change language is in Preferences > General > Advanced settings > Language
jproy
@jproy
Mar 29 15:23
@ccordoba12 Oh my god, thanks, it's ok. Sorry for the bandwidth.
CAM Gerlach
@CAM-Gerlach
Mar 29 15:29
@jproy Really sorry for forgetting that setting I really should have known; I got it confused with another one that is that way. I guess that's what I get for being American, heh.
jproy
@jproy
Mar 29 16:28
@CAM-Gerlach No problem, be happy :-)
harvi2323
@harvi2323
Mar 29 18:14
Hi, first time using spyder...I'm trying to update it...but im stuck on this command "conda install -c spyder-ide spyder-kernels=1.*"...what do I type in after the "=1."?
CAM Gerlach
@CAM-Gerlach
Mar 29 18:23
@harvi2323 If its your first time using Spyder, you should not be using that command; it only for installing the correct version of Spyder-Kernels for our current development version (Spyder 4) and will make a current stable Spyder 3.x installation stop working. You should update Spyder with the command we recommend in our update popup, documentation, readme, install guide, contributing guide, etc, which is conda update spyder spyder-kernels. The latest versions are 3.3.3 and 0.4.2 respectively, so if you are using those, you have the latest versions.
Furthermore, if you were trying to install a 1.x version of spyder-kernels from our spyder-ide channel (which is what that command does), you don't type anything after the =1., that's the full command.
harvi2323
@harvi2323
Mar 29 18:26
@CAM-Gerlach Ok, got it!!!. Thanks for your help.