PyCharm

From PrattWiki
Revision as of 22:27, 24 December 2019 by DukeEgr93 (talk | contribs)
Jump to navigation Jump to search

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.