Category "pycharm"

How can I silence a PyCharm "Unexpected argument" message for simple, indirect object creation

I am getting an "Unexpected argument" message with Python 3.7 and PyCharm 2020.2 when using the code below. from dataclasses import dataclass @dataclass class

Can you stop PyCharm from automatically closing script files when you click out of the program?

I am having a problem with PyCharm (Community Edition) in that, when I open a .py file in the program, I can happily read and write in the file as usual, howeve

Pycharm: terminate all running processes

PyDev has a feature to terminate all running processes. Does PyCharm have something similar? I only see a "stop" button in the menu.

How to enable PEP8 inspection in PyCharm IDE, except for using 2 spaces for indents? [duplicate]

I've been using PyCharm IDE a lot recently when working with the TensorFlow Python repository. TensorFlow follows the PEP8 Python style guide,

How do I type hint a method with the type of the enclosing class?

I have the following code in Python 3: class Position: def __init__(self, x: int, y: int): self.x = x self.y = y def __add__(self, oth

Set a Default Interpreter and use NO virtualenv in PyCharm 2017

I'm on Ubuntu 16.04. I went to File > Default Settings > Project Interpreter > add local and browsed to my anconda3/long/path/python3.6. When I open a

Set a Default Interpreter and use NO virtualenv in PyCharm 2017

I'm on Ubuntu 16.04. I went to File > Default Settings > Project Interpreter > add local and browsed to my anconda3/long/path/python3.6. When I open a

kivy doesn't show window

i use this code, and run it on py charm import kivy from kivy.app import App from kivy.uix.label import Label class MyApp(App): def build(self): r

PyCharm error: Cannot run program, error=2, No such file or directory

I am getting the following error message when attempting to execute Python code in PyCharm: Cannot run program "/Users/x/.virtualenvs/untitled/bin/python" (in

PyCharm error: Cannot run program, error=2, No such file or directory

I am getting the following error message when attempting to execute Python code in PyCharm: Cannot run program "/Users/x/.virtualenvs/untitled/bin/python" (in

Profiling a python program with PyCharm (or any other IDE) [closed]

I'm running a relatively complex python program and in it there is a montecarlo simulation which takes up most of the time. I would like to fi

Pycharm: "No Python interpreter configured for the project" everytime

Every time I open PyCharm I get this message: No Python interpreter configured for the project. So I set the interpreter, everything works fine, then I close

How to reorder methods in PyCharm

Is there a way to change the order of methods in PyCharm? I would expect a dialog similar to that for changing the order of parameters in a function call, but I

Is it possible in Pycharm to map a tab to produce 4 spaces. If so how? [duplicate]

this is my first time using an IDE. I was wondering if its possible, as I've done in vim with imap, to make it so that when I press tab 4 spa

Pycharm : not displaying files on the left

I used to have my files on the pycharm box on the left of my window, like that : but now Pycharm displays it under the list of directory : I can't change

No warning at undefined variables in PyCharm Community 2017.2 [duplicate]

I have this piece of code in a Python module open in PyCharm Community Edition 2017.2. class Sample(object): def __init__(self):

Pycharm External tools relative to Virtual Environment

Using the PyCharm IDE, when setting up an external tool, how can you set up the external tools with a path relative to use the current virtual env defaults.? A

OSError: [Errno 22] Invalid argument: 'D:\\pyCHram\\<input>'

I use ‘ProcessPoolExecutor’ to handle some data on PyCharm,but i get this error:"OSError: [Errno 22] Invalid argument: 'D:\pyCHram\'"。

How do I get each python import on a different line when using Alt+Enter to magically import in Pycharm?

Currently if i do Alt+Enter on a function in a different module which isn't imported yet it simply adds it to a an existing import line. Say I have: from my_p

Pycharm's code style inspection: ignore/switch off specific rules

I'm trying to import existing project into PyCharm. I can refactor the code so that PyCharm will be pleased, but we like to have spaces around colons in diction