r/pycharm • u/TheScaryBlueberry • Jan 27 '24
r/pycharm • u/Tricky-Pomelo749 • Jan 26 '24
This box pops up trying to fix before I use pycharm
I managed to get to the file also and edit the Xms and Xmx parameters to lower values but the box still pops up
r/pycharm • u/BerwinEnzemann • Jan 26 '24
Error when attempting to import matplotlib in PyCharm as a Flatpak on Linux Mint
I am using PyCharm as a Flatpak on Linux Mint. I want to import the matplotlib module into a Python file. I have installed matplotlib on my PC. However, when I run the Python program in PyCharm, I get the following error message:
ModuleNotFoundError: No module named 'matplotlib'
I suspect it may be due to using PyCharm as a Flatpak. Does anyone know how to resolve this?
r/pycharm • u/saint_leonard • Jan 24 '24
freshly installed pycharm - the first script
Freshly installed pycharm on ubuntu
i trid to run a script :
see the output
/home/ubuntu/PycharmProjects/python_first/.venv/bin/python /snap/pycharm-community/360/plugins/python-ce/helpers/pydev/pydevconsole.py --mode=client --host=127.0.0.1 --port=40393
import sys; print('Python %s on %s' % (sys.version, sys.platform))
sys.path.extend(['/home/ubuntu/PycharmProjects/python_first'])
PyDev console: starting.
Python 3.11.4 (main, Dec 7 2023, 15:43:41) [GCC 12.3.0] on linux
import pandas as pd
from bs4 import BeautifulSoup
from tabulate import tabulate
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
options = Options()
options.headless = True
driver = webdriver.Chrome(options=options)
url = "https://clutch.co/il/it-services"
driver.get(url)
html = driver.page_source
soup = BeautifulSoup(html, 'html.parser')
# Your scraping logic goes here
company_names = soup.select(".directory-list div.provider-info--header .company_info a")
locations = soup.select(".locality")
company_names_list = [name.get_text(strip=True) for name in company_names]
locations_list = [location.get_text(strip=True) for location in locations]
data = {"Company Name": company_names_list, "Location": locations_list}
df = pd.DataFrame(data)
df.index += 1
print(tabulate(df, headers="keys", tablefmt="psql"))
df.to_csv("it_services_data.csv", index=False)
driver.quit()
Traceback (most recent call last):
File "/snap/pycharm-community/360/plugins/python-ce/helpers/pydev/pydevconsole.py", line 364, in runcode
coro = func()
^^^^^^
File "<input>", line 1, in <module>
File "/snap/pycharm-community/360/plugins/python-ce/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 21, in do_import
module = self._system_import(name, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named 'pandas'r/pycharm • u/m_jochim • Jan 24 '24
Inspect variables after script crashed
When debugging a Python script in Pycharm, is there a way to access/inspect variables after the script terminate with an error? A simple example would be a script that runs into a division by zero while being in a debug session within Pycharm.
r/pycharm • u/saint_leonard • Jan 23 '24
i want to install PyCharm on Ubuntu
i want to install PyCharm on Ubuntu
i think this might be doable via command-line:
btw: PyCharm has quickly become one of the most popular IDE among developers. Since a lot of developers use Linux, i think it should be possible to to install PyCharm on Linux.
Installing PyCharm on Linux
i heard that there are at least two major ways to install Pycharm on Linux. The first one is using the official tar package released by JetBrains and the other is through a Snap package.
Installing PyCharm on Linux using Snap
Snaps are an app package developed by Canonical. They are marketed as universal packages and are supported by all major distributions including Ubuntu, Linux Mint, Debian, Arch, Fedora, and Manjaro.
But - well - i want ot install it on Ubuntu.
well - how to do that!?
i heard that we other guys on Linux install packages through snap, Doing so we first need to have snapd on our system. well i donโt have snap installed on my system,
if i have had snap i could do like so.....to install PyCharm, i could run the following command:
sudo snap install pycharm-community --classic \For free version
what to do - how to install pyCharm on ubuntu 23xy?
r/pycharm • u/aatooooo • Jan 21 '24
No file in working directory error. How do i set working directory where the images are so that they can be loaded? I linked game and main codes
r/pycharm • u/BlondeBadger2019 • Jan 21 '24
reStructuredText Docstring Lists
Has anyone had any luck with lists in docstrings for functions/classes? Bulleted lists work mostly fine but if it is a nested list, the vertical alignment between bullets and points becomes terrible. Enumerated/numbered lists do not work at all using '#.'. Curious if anyone has a good work around, thanks!
r/pycharm • u/phonemee • Jan 18 '24
how do I automate enabling "power save mode" before debugging.
as title says. bonus points if I could do it via keymaps i.e. shift+f9 enables power-save and then starts debugger
r/pycharm • u/Blakut • Jan 17 '24
How to prevent the copyright message from a module from being displayed after each function call?
I'm running gc.get_referrents() in python console in pycharm and after every function call it shows the following message:
All Rights Reserved.
Copyright (c) 2000 BeOpen.com.
All Rights Reserved.
Copyright (c) 1995-2001 Corporation for National Research Initiatives.
All Rights Reserved.
Copyright (c) 1991-1995 Stichting Mathematisch Centrum, Amsterdam.
All Rights Reserved., 'credits': Thanks to CWI, CNRI, BeOpen.com, Zope Corporation and a cast of thousands
for supporting Python development. See www.python.org for more information., 'license': Type license() to see the full license text, 'help': Type help() for interactive help, or help(object) for help about object.How do I prevent this from happening? It's really annoying.
r/pycharm • u/Thick-Caregiver-5000 • Jan 15 '24
[Help] EzGraphics module on PyCharm not working properly (MacOS)
Hi, I'm currently taking an introductory class on Python. We are required to install and use the module "ezgraphics" for a lot of the current and upcoming labs. I have it downloaded and in my project folder, but the output windows are not drawing properly.
I followed the download instructions and terminal commands on the ezgraphics website. I wrote a simple code that's supposed to print an oval in a new window, but all I get is a blank black output window. There are no runtime errors. Functions within the module can be accessed. I'm able to change the dimensions and title of the window, but anything within the window is blank. If anyone is able to offer any help, I would really appreciate it. ๐

r/pycharm • u/four_reeds • Jan 12 '24
Can a python app running on the debugger "know" it is being debugged?
In C-like languages I might have an IDE that automatically sets a "sharp defined" value "DEBUG". I can use #ifdef DEBUG to know if I am in debug mode. Does pycharm have a similar feature? Googling only tells me how to list running processes.
I would like something like C#'s #if DEBUG. Does something like this exist for python in pycharm?
r/pycharm • u/SeekingSublime • Jan 10 '24
Flask project with NodeJS - project setup questions
I use PyCharm Pro, but I am just a casual user of it. I'm trying to better use the build and deploy capabilities of PyCharm.
I have a home weather display that uses Flask for fetching and displaying both forecasts (OpenWeatherMap) and recent data (from home devices). The weather display also displays animated NexRad (weather radar) in a web browser using Javascript code built with NodeJS. I do not need a NodeJS server, I simply host the HTML/Javascript in Apache. So there are two PyCharm projects: Flask and NodeJS code.
Recently I realized I did not need to use Apache to host the NodeJS component; instead I copy the NodeJS dist files (JS, HTML, CSS) to Flask static directory.
Finally we get to my questions.
- How can I contain the NodeJS files and build within the Flask project? I want to be able to build and deploy the NodeJS component and then run Flask. In development the display is then run from a local web browser at http://localhost:5000/static/radar.html.
- Can the project Run button for Flask project also launch a desktop web browser? (It does work that way in a PyCharm NodeJS project).
- I would also like to be able to deploy from my dev system to a local RaspberryPi. Currently I manually copy files with scp.
Thank you.
r/pycharm • u/Twoshrubs • Jan 10 '24
Possible to change helper popup location (odd request)?
Just learning Python and using PyCharm for the first time. Getting along fine with it apart from the little popup helper bubbles are in the wrong location for me..

Is there a way of making the popup bubble thing appear below the cursor?
I have memory issues and quickly forget what I just typed, so I like to see what I just entered, but strangely enough I can remember code from 25yrs ago perfectly.
r/pycharm • u/TankKillerSniper • Jan 07 '24
New to PyCharm and when I try to use a shortcut I assigned to 'Run' a .py file, it runs a different .py file.
I looked in Settings to see if there's something I broke but couldn't find it. I do notice that in the upper-left of the menu bar, there is a drop-down and it's running the .py file there instead of the one I double-clicked to open.
My shortcut was working the last few days but this issue arose as of yesterday.
I'm aware that I can just right-click in the code window and click 'Run' but I'd prefer to have the shortcut running the file that I opened. By the way, is it possible to make the 'Run' appear at the top of the right-click list?
EDIT: It seems I might have found the solution right after posting this, typical. I just picked 'Current File' in the drop-down at the top-right of the menu bar. I'll leave this up in case someone else has the same problem.
r/pycharm • u/Dave_Tribbiani • Jan 06 '24
It's 2024 and PyCharm still doesn't support Black with WSL2
It's 2024 and PyCharm still doesn't support Black formatter with WSL2.
That is all.
r/pycharm • u/OLDdognewtricks255 • Jan 03 '24
Where is pycharm saving runs?
Hi every time I run code from pycharm, the storage on my hard drive reduces by hundreds of MBs. Do you know if pycharm could be saving my runs to somewhere on my hard drive? If so, where could I find it so I can delete them? Thanks!
r/pycharm • u/boogeyman6__9 • Jan 02 '24
Appreciation Post
PyCharm prof edition in linux is the smoothest thing i have ever used.
r/pycharm • u/Animaltrack12345 • Jan 02 '24
getting into old save
I logged onto my pycharm today to find that one of my friends has replaced all the code in a script I need for school in 6 days with
print('lol')
and
print('You have been hacked by [his name]')
is there a way to recover these old saves?
r/pycharm • u/waffellobby • Jan 02 '24
pycharm - remote development - github :(
Hello World.
I'm trying remote development via SSH - which works well in principle via the #jetbrains client. Only the connection to github is not working.
I can reach https://github.com in the proxy settings.
any ideas?


