Mayavi and Spyder

 Mayavi and Spyder don't seem to get along. I am doing some mlab.points3D plotting. The Mayavi Scene keeps hanging. It works sometimes, but doesn't most of the time. But, if I run the same script from IDLE, it works fine. I'm yet to figure out what's going on.

Using plain Spyder

 I used to work with the default Python IDLE for short scripts.

When I needed to manage a larger project, I installed Spyder. But, simply downloading Spyder from the website and installing has it's own difficulties. It comes with it's own Python interpreter, making installation of modules complicated.

For using plain Spyder with Anaconda or anything, here is what worked for me:

  1. Install Python interpreter
  2. From cmd, do 'pip install sypder'
  3. To run spyder, just type 'spyder'

That's it! Now you have Spyder without any external interpreter. All modules can be installed normally with pip install and accessed from Spyder.


(this was successfully tested on Windows 10 with Python 3.9)


Edit: Issues on Python 3.10: "cannot import name 'MutableMapping' from 'collections'"



Comments

Popular posts from this blog

Resolving FORTRAN 77 Errors

Wired article on the benefits of 'active rest'