Difference between revisions of "PyCharm"

From PrattWiki
Jump to navigation Jump to search
(Created page with "This is a sandbox for setting up and using PyCharm as a potential replacement for Spyder. * Install Anaconda [https://www.anaconda.com/distribution/] * Install Kite * Update...")
 
 
(3 intermediate revisions by the same user not shown)
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.
  
* Install Anaconda [https://www.anaconda.com/distribution/]
+
== Installing Python and PyCharm ==
 +
* Install Anaconda [https://www.anaconda.com/distribution/ Download page]
 
* Install Kite
 
* Install Kite
 
* Update Anaconda
 
* Update Anaconda
 
  conda update conda
 
  conda update conda
 
  conda update --all
 
  conda update --all
* Get PyCharm for Anaconda [https://www.jetbrains.com/pycharm/promo/anaconda/]
+
* Get PyCharm for Anaconda [https://www.jetbrains.com/pycharm/promo/anaconda/ Download page]
 
** Students can use the Professional Edition for free for school use
 
** Students can use the Professional Edition for free for school use
* At main window, configure settings
+
** For the "plugiun Setup"
 +
*** You will likely want the 64-bit launcher shortcut created
 +
*** You will likely also want the '''Add "Open Folder as Project"'''
 +
*** For the Start Menu Folder, leaving this as JetBrains is fine
 +
*** Pick your theme; there is more information below about different ways to configure appearance
 +
*** You will not need any of the additional plugins.
 +
*** You will not need any of the additional tools.
 +
* At "Welcome to PyCharm" window, click "Configure" at bottom right and then "Settings"
 
** Project Interpreter
 
** Project Interpreter
 
*** At top right, click settings gear icon and then Add
 
*** At top right, click settings gear icon and then Add
 
**** In Conda Environment, pick latest Python version available
 
**** In Conda Environment, pick latest Python version available
 +
**** Select the path to Conda Executable and navigate to something similar to:
 +
C:\Users\USER\AppData\Local\Continuum\anaconda3\Scripts\conda.exe
 +
::::*Once you navigate to your USER folder, you may have to manually type "AddData" in the path window since that folder is typically hidden.
 +
::* After that is added, there should be a list of packages; you will need to add some to this so click the + near the top right.  Once the available packages window comes up, you will want to add:
 +
:::* numpy, scipy, matplotlib, pandas
 +
*  Build, Execution, Deployment
 +
** In Console, pick "Use existing console"
 +
  
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
 
** Use existing interpreter for newest version of Python
 
** 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
+
Once the project window opens and after indexing is complete:
Build, Execution, Deployment
+
* From View menu, pick Scientific mode
** In Console, pick "Use existing console"
+
* From File menu, pick New then Python File. Give the file a name and hit return.
* Tools -> Python Scientific -> Uncheck Show plots in tool window
+
 
 +
* In File, go to Settings
 +
** 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.

Latest revision as of 23:16, 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
    • For the "plugiun Setup"
      • You will likely want the 64-bit launcher shortcut created
      • You will likely also want the Add "Open Folder as Project"
      • For the Start Menu Folder, leaving this as JetBrains is fine
      • Pick your theme; there is more information below about different ways to configure appearance
      • You will not need any of the additional plugins.
      • You will not need any of the additional tools.
  • At "Welcome to PyCharm" window, click "Configure" at bottom right and then "Settings"
    • Project Interpreter
      • At top right, click settings gear icon and then Add
        • In Conda Environment, pick latest Python version available
        • Select the path to Conda Executable and navigate to something similar to:
C:\Users\USER\AppData\Local\Continuum\anaconda3\Scripts\conda.exe
  • Once you navigate to your USER folder, you may have to manually type "AddData" in the path window since that folder is typically hidden.
  • After that is added, there should be a list of packages; you will need to add some to this so click the + near the top right. Once the available packages window comes up, you will want to add:
  • numpy, scipy, matplotlib, pandas
  • Build, Execution, Deployment
    • In Console, pick "Use existing console"


Starting a new project

  • Create New Project
    • Pick or create a new folder to work in
    • Use existing interpreter for newest version of Python

Once the project window opens and after indexing is complete:

  • From View menu, pick Scientific mode
  • From File menu, pick New then Python File. Give the file a name and hit return.
  • In File, go to Settings
    • 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.