These are chat archives for spyder-ide/public
@guall28 This is an issue with your graphics drivers or related subsystems, and is unrelated to Spyder and outside of our control. In paricular, reports suggest it has to do with GPU switching on laptops, e.g. Nvidia Optimus or AMD Switchable Graphics. Try all of the fixes mentioned here, including switching to one card or the other, disabling one or the other in device manager and updating your OS and graphics drivers. Also, make sure Spyder is the latest version, which is currently 3.3.4 (you can check with
conda list spyder in the Anaconda prompt; update with
conda update spyder spyder-kernels). Make sure you're launching Spyder from the shortcut or the Anaconda prompt, since it is strictly faster than launching from Anaconda Navigator and the latter can sometimes cause errors. Finally, if none of that works, send me the output of
conda list qt and I Can give you further suggestions.. Thanks!
Anaconda - WinPython
Those are two different scientific Python distributions. Are you meaning to say you tried both of them?
runfilestates, it is an internal command that is only intended to be used by the Spyder IDE, not called from the command line or in your code. You can configure working directory, arguments, and other run configuration settings from
Run > Run configuration.
if len(sys.argv) < 3: print ("Usage: to_local_parameters <input_copasi_file> <output_copasi_file>") sys.exit(0) input_file = sys.argv output_file = sys.argv
Command line argumentsbox in the run configuration. Worked fine for me testing your example code.
argparseto handle your args rather than rolling your own code, as it will be much easier to use and extend, give you much more helpful help and debug messages, and avoid common errors and extra work.
main.pyscript as is conventional. In fact, Spyder 4 will support defining a main script for each project, which can be automatically run with a single shortcut no matter what file you are currently working on.
Ctrl-Shift-Ato select all,
Ctrl-Cto copy and then just paste it into your favorite text editor (Vim, Emacs, Sublime, NP++, TextWrangler, etc...)