Difference between revisions of "PyCharm"

From PrattWiki
Jump to navigation Jump to search
Line 1: Line 1:
 
This is a sandbox for setting up and using PyCharm as a potential replacement for Spyder.
 
This is a sandbox for setting up and using PyCharm as a potential replacement for Spyder.
  
 +
== Installing Python and PyCharm ==
 
* Install Anaconda [https://www.anaconda.com/distribution/ Download page]
 
* Install Anaconda [https://www.anaconda.com/distribution/ Download page]
 
* Install Kite
 
* Install Kite
Line 13: Line 14:
 
**** In Conda Environment, pick latest Python version available
 
**** In Conda Environment, pick latest Python version available
  
To start work:
+
== Starting a new project ==
 
* Create New Project
 
* Create New Project
 
** Pick or create a new folder to work in
 
** Pick or create a new folder to work in
Line 20: Line 21:
 
** From File menu, pick New then Python File.  Give the file a name and hit return.
 
** From File menu, pick New then Python File.  Give the file a name and hit return.
  
Other settings: In File, go to Settings
+
* Other settings: In File, go to Settings
 
*  Build, Execution, Deployment
 
*  Build, Execution, Deployment
 
** In Console, pick "Use existing console"
 
** In Console, pick "Use existing console"
 
* Tools -> Python Scientific -> Uncheck Show plots in tool window
 
* Tools -> Python Scientific -> Uncheck Show plots in tool window
 
Most of the time when you change settings you will need to restart the console for them to be applied.
 
Most of the time when you change settings you will need to restart the console for them to be applied.

Revision as of 22:27, 24 December 2019

This is a sandbox for setting up and using PyCharm as a potential replacement for Spyder.

Installing Python and PyCharm

conda update conda
conda update --all
  • Get PyCharm for Anaconda Download page
    • Students can use the Professional Edition for free for school use
  • At main window, configure settings
    • Project Interpreter
      • At top right, click settings gear icon and then Add
        • In Conda Environment, pick latest Python version available

Starting a new project

  • Create New Project
    • Pick or create a new folder to work in
    • Use existing interpreter for newest version of Python
    • From View menu, pick Scientific mode
    • From File menu, pick New then Python File. Give the file a name and hit return.
  • Other settings: In File, go to Settings
  • Build, Execution, Deployment
    • In Console, pick "Use existing console"
  • Tools -> Python Scientific -> Uncheck Show plots in tool window

Most of the time when you change settings you will need to restart the console for them to be applied.