Sunday, 10 December 2017

Using Anaconda ipython


 Start Anaconda command prompt and type in the following command :
                                                  ipython
This starts the ipython console which is a pretty neat terminal. Set of imports can be done using a single command in the ipython console:
                                               %pylab
But to make life easier for array operations, incorporating mathematical functions it is always best to start ipython using the command in the command prompt:
                                            ipython --pylab

For more information regarding the above check :
https://stackoverflow.com/questions/20525459/ipython-pylab-vs-ipython


   
             

Problems faced in Spyder Python

Problems faced in Python Spyder


  1. Spyder faced problem of failure to start Kernel:
    This was solved by using the following command :
                  conda install -c anaconda python  
    After this command spyder was started from the Anaconda terminal using command:
                                spyder
    Now the problem was finally resolved using resetting Spyder to defaults using:
                           tools -> Reset Spyder to factory defaults
  2.  There was a problem that was accompanied using the above method, which is the installation of the latest version of PyQt5 which overrides PyQt4. Hence to force the downgrade to PyQt4 the following command was used:         
    Ref :https://github.com/jnicoleoliveira/SPECData/issues/6

                 conda install --channel https://conda.anaconda.org/conda-forge pyqt
                 conda install -c anaconda pyqt=4.11.4