{"id":148414,"date":"2023-10-20T10:48:54","date_gmt":"2023-10-20T14:48:54","guid":{"rendered":"http:\/\/www.bu.edu\/tech\/?page_id=148414"},"modified":"2024-10-23T16:23:40","modified_gmt":"2024-10-23T20:23:40","slug":"pycharm","status":"publish","type":"page","link":"https:\/\/www.bu.edu\/tech\/support\/research\/software-and-programming\/common-languages\/python\/python-editing\/pycharm\/","title":{"rendered":"PyCharm"},"content":{"rendered":"<p><a name=\"top\"><\/a><\/p>\n<div style=\"width: 100%;\">\n<div style=\"float: right; width: 45%;\"><img loading=\"lazy\" src=\"\/tech\/files\/2024\/10\/pycharm_screenshot-636x375.png\" alt=\"\" width=\"636\" height=\"375\" class=\"alignnone wp-image-154747 size-medium\" srcset=\"https:\/\/www.bu.edu\/tech\/files\/2024\/10\/pycharm_screenshot-636x375.png 636w, https:\/\/www.bu.edu\/tech\/files\/2024\/10\/pycharm_screenshot-1024x603.png 1024w, https:\/\/www.bu.edu\/tech\/files\/2024\/10\/pycharm_screenshot-768x452.png 768w, https:\/\/www.bu.edu\/tech\/files\/2024\/10\/pycharm_screenshot.png 1263w\" sizes=\"(max-width: 636px) 100vw, 636px\" \/><\/div>\n<div style=\"float: none;\"><a href=\"https:\/\/www.jetbrains.com\/pycharm\/\">PyCharm<\/a> is a sophisticated Python integrated development environment from the company JetBrains. This can easily be installed and used on the SCC, however it requires an annual license to be obtained in order to use it. This license is free for students, staff, and faculty.\u00a0 Please refer to the JetBrains page on <a href=\"https:\/\/www.jetbrains.com\/community\/education\/#students\">licenses for educational use<\/a>. Due to the license requirement, RCS does not install PyCharm as a software module, and it is the individual user&#8217;s responsibility to renew their annual license. PyCharm can also be installed on your personal computer using that same license.<\/div>\n<\/div>\n<p><strong>Sections<\/strong><\/p>\n<ul>\n<li><a href=\"#install\">Installation<\/a><\/li>\n<li><a href=\"#setup\">Python Setup<\/a><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><a name=\"install\"><\/a><\/p>\n<h2>Installation<\/h2>\n<ol>\n<li>Open an OnDemand Desktop session, and open Firefox. This can be found by clicking the Applications menu in the upper left of the Desktop, then click the Internet option, then click on Firefox:<br \/>\n<img loading=\"lazy\" src=\"\/tech\/files\/2023\/12\/menu.png\" alt=\"\" class=\"alignnone wp-image-149340\" width=\"247\" height=\"360\" \/><\/li>\n<li>In Firefox, navigate to the PyCharm page (<a href=\"https:\/\/www.jetbrains.com\/pycharm\/\">https:\/\/www.jetbrains.com\/pycharm<\/a>), and click the download link. Download the <b><code>.tar.gz<\/code><\/b> file.<\/li>\n<li>Open a terminal window in your Desktop session. The default location for the downloaded file is the <b>Downloads<\/b> folder in you home directory. Due to the size of the extracted program (approx. 2 GB), it is recommended that you set it up in your \/projectnb space:\n<pre><code class=\"code-block\"><span class=\"prompt\">[rcs@scc1 ~]<\/span> <span class=\"command\">cd<\/span> <span class=\"placeholder\">\/projectnb\/your\/directory<\/span>\r\n\r\n# As of the writing this page, the downloaded file is called:\r\n# pycharm-professional-2023.2.5.tar.gz\r\n# This may change depending on when you download the installer. \r\n# Double-check the name of the downloaded file.\r\n<span class=\"prompt\">[rcs@scc1 ~]<\/span> <span class=\"command\">tar zxf ~\/Downloads\/<\/span><span class=\"placeholder\">pycharm-professional-2023.2.5.tar.gz<\/span>\r\n\r\n# To run PyCharm, load the Python environment you want to use before opening PyCharm.\r\n<span class=\"prompt\">[rcs@scc1 ~]<\/span> <span class=\"command\">module load miniconda<\/span>\r\n<span class=\"prompt\">[rcs@scc1 ~]<\/span> <span class=\"command\">conda activate<\/span> <span class=\"placeholder\">my_favorite_env<\/span>\r\n<span class=\"prompt\">[rcs@scc1 ~]<\/span> <span class=\"command\">.\/<span class=\"placeholder\">pycharm-2023.2.5<\/span>\/bin\/pycharm.sh<\/span><\/code><\/pre>\n<\/li>\n<li>When the program opens it will prompt you for the license or activation code, please refer to the JetBrains pages on how to enter this information.<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<p><a name=\"setup\"><\/a><\/p>\n<h2>Python Setup<\/h2>\n<p>Before launching PyCharm, you should load the Python3 module you want to use, or activate your Python virtual environment, or activate your conda environment. PyCharm will scan the program search path for available Python interpreters. Once found, PyCharm will perform an indexing process on all available Python libraries. Depending on the number of Python libraries available this process may take 10-20 minutes. PyCharm will inform you of the progress of the indexing in its GUI. Please refer to the <a href=\"https:\/\/www.jetbrains.com\/help\/pycharm\/indexing.html\">PyCharm documentation on this topic<\/a>. The indexing step is required for new Python environments (for example, you were using <code>python3\/3.10.12<\/code>; and have switched to a conda environment), and in practice is only noticeable when a new Python environment is used with PyCharm.<\/p>\n<p><a href=\"#top\">Back to top<\/a><\/p>\n<div style=\"float: right;\">\n<p id=\"last-modified-timestamp\" style=\"margin: 0;\">Last updated: Loading&#8230;<\/p>\n<\/div>\n<p><script>\r\ndocument.addEventListener('DOMContentLoaded', function() {\r\n    \/\/ Get the content of the meta tag\r\n    var lastUpdatedContent = document.querySelector('meta[name=\"last-updated\"]').content;\r\n    \r\n    \/\/ Parse the content into a Date object\r\n    var lastUpdatedDate = new Date(lastUpdatedContent);\r\n    \r\n    \/\/ Format the date\r\n    var formattedDate = lastUpdatedDate.toLocaleDateString(undefined, { year: 'numeric', month: 'long', day: 'numeric' });\r\n    \r\n    \/\/ Update the HTML element with the formatted date\r\n    document.getElementById('last-modified-timestamp').innerHTML = 'Last updated: ' + formattedDate;\r\n});\r\n<\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>PyCharm is a sophisticated Python integrated development environment from the company JetBrains. This can easily be installed and used on the SCC, however it requires an annual license to be obtained in order to use it. This license is free for students, staff, and faculty.\u00a0 Please refer to the JetBrains page on licenses for educational&#8230;<\/p>\n","protected":false},"author":1692,"featured_media":0,"parent":147624,"menu_order":4,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/www.bu.edu\/tech\/wp-json\/wp\/v2\/pages\/148414"}],"collection":[{"href":"https:\/\/www.bu.edu\/tech\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.bu.edu\/tech\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.bu.edu\/tech\/wp-json\/wp\/v2\/users\/1692"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bu.edu\/tech\/wp-json\/wp\/v2\/comments?post=148414"}],"version-history":[{"count":15,"href":"https:\/\/www.bu.edu\/tech\/wp-json\/wp\/v2\/pages\/148414\/revisions"}],"predecessor-version":[{"id":154748,"href":"https:\/\/www.bu.edu\/tech\/wp-json\/wp\/v2\/pages\/148414\/revisions\/154748"}],"up":[{"embeddable":true,"href":"https:\/\/www.bu.edu\/tech\/wp-json\/wp\/v2\/pages\/147624"}],"wp:attachment":[{"href":"https:\/\/www.bu.edu\/tech\/wp-json\/wp\/v2\/media?parent=148414"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}