Code folding is not saved in Spyder 5.1.5 - spyder

I use code folding in Spyder but after file saving, closing and opening the code is present but code folding is lost. However break points are saved. How to avoid loosing the code folding?
I use Spyder 5.1.5 with WinPython 3.9.5.0 and the programs are used without installation on Win10Pro version 21H1.

(Spyder maintainer here) Sorry but we don't have that functionality in Spyder, i.e. Spyder doesn't save folded regions in files before closing them.

Related

Run current line in Spyder 3.3.3 not working

The shortcut keys to run the current line and advance (Shift+Return) in Spyder is not working. I have checked the preferences and the binding I want is there. Any suggestions on why Shift+Return is not working? I am using Spyder 3.3.3 on Windows 78 (64 bit).
The soluitions here:
How to run current line in Spyder 3.5( ctrl +f10 not working)
are not working for me. My preference settings are below.
(Spyder maintainer here) Please read the screenshot you posted above with care. Shift+Return is not used for running the current line and advance, but to run the current cell and advance to the next one. If you don't know what a cell is in Spyder, you can read about it here.
To run lines, you need to use the shortcut named "run selection".

Spyder - show call stack in variable explorer

I know this question has been asked previously, but the questions I have found were asked several years ago and so I suspect Spyder has undergone updates in this period.
Is it possible yet to view the call-stack for recursive programs in Spyder (for python) as it is in VS Code, for example?
If so, please can someone guide me as to how this is done
Thank you
Yes you can do it thanks to python debugger (pbd) inside Spyder. At least this works from Spyder 2.7 but maybe earlier. In Spyder (checked for Spyder 2.7; and Spyder 3.3.3. with Python 3.6.8., 64bits, PyQt5 5.12, Windows 7) you can use ipbd in debugging mode in the ipython console. There are 3 commands to navigate in the stack:
w(here): it returns the call stack on iPython console with all levels
u(p): it goes one level up in the stack debugging, and updates the variables explorer, so you see now only the variables that apply to that stack level. It also updates the arrow debug pointer in the script editor.
d(own): the same than "up" but down

Saving Python code in Anaconda

I am having problems saving the Python code in Anaconda. I write code, Go to File Save as the file is saved but when I open it is empty, no code. I read that IDLE does not save code, it erases it when I close Anaconda.
I have searched in books, youtube tutorials and nothing. I could not find this topic. I can find advanced topics, but this one no.
Thank you for your help!
Best,
Tiberiu
This somewhat depends on what OS you are on. I can speak from my experience. I would highly recommend using PyCharm as an IDE.
But more fundamentally than that, lets talk about saving files. On Mac OS X or Ubuntu 14.04 (or the like), lets say you want to create a python file. One way is to do the following in a terminal:
nano hello.py
This opens up a text editor whose instructions for use are on the bottom of the screen. On Windows you could do:
notepad hello.py
In both cases you then write your code. Lets say the content was:
#content of hello.py
print "Hello World!"
Then you need to save the file and execute it with Python.
Which brings us to the Python issue.
Once you have installed Anaconda, and assuming that there are no other Python installations on your computer. The Anaconda Python should be the active Python on system.
Suffice to say that there are other ways of saving files rather than using IDLE. Personally I have found PyCharm to be a much better IDE for writing Python code.
To address the IDLE issue more directly once you type in the terminal/command prompt idle to launch an IDLE session, likely the IDLE Shell will open up. Perhaps you are trying to save this, in which case you will only save the Shell session.
So go to File - New - Save. This should work without any problem (it does on my system). Good luck! Hope this helps.

Scite4autohotkey installer gives me no features

When I use the installer from the author's website, I end up with a program that seems to have no support for autohotkey editing, no syntax hiliting, (not even a language to deal with .ahk files), no ahk specific tools in the toolbar, debuger support, help file, and so on. In fact, the only thing I see is a changed 'About...' in the Help menu.
Is there some setup I'm missing, or is the current version broken?
This is an old question but after a longer period there has been an update.
The latest version can be found here.

Memory Load/Save Utility in Code Composer 3.3

Apologies in advance for the dated software question:
According to Code Composer help documentation the "Memory Load/Save Utility" should be be in the Tools menu. In my Code Composer 3.3 (which I have to use for this project, so I cannot upgrade), does not have this option in the tools menu, or any menu that I could find. It is not greyed out - it is just simply missing as far as I can tell. I've changed every view option to try and enable this.
Can anyone help me figure out how to enable/activate this option? Does the processor need to be in a specific state? Is this a special plug-in that I can't find?
Here is my setup:
Code Composer 3.3, Windows Xp, Using a Spectrum Digital xds510pp JTAG emulator on a TI ARM 9 processor.
Specifically the option is here: 13. Memory Load/Save Utility:
http://www.ti.com/lit/an/spraa07c/spraa07c.pdf
[EDIT] The File > Data > Save - this is not the same as the Memory Load/Save Utility. This sounds similar but does not export the values.
For example, I need to export data at a certain memory address for a certain length into a hex format.
Somehow my installation went bad.
I checked the Code Composer Studio Component Manager by running C:\CodeComposer3.3\cc\bin\comp_mgr.exe. Now, in this window un the TI node, there should be numerous plugins and one of which should be: "Memory Save/Load Utility Control..."
For me this was missing.
Repairing the installation via windows control panel did not work. I had to uninstall and then reinstalled. Upon reinstalling a TMS470 driver was reported missing. Not sure why this was.
Again, I uninstalled then complete removed the C:\CodeComposer3.3\ directory, then reinstalled. This time everything seemed to have worked and I do have the Memory Save/Load Utility and it is working.
EDIT:
It should also be noted that the plugins are bundled with the installer and could not be re installed separately.

Resources