Questions tagged [pycharm]

PyCharm is an integrated development environment (IDE) for Python. It is developed by JetBrains for Windows, Mac OS X and Linux. DO NOT use this tag on questions regarding code which merely happens to be written using PyCharm, use the appropriate language tag [python] instead.

PyCharm is an integrated development environment (IDE) for Python, developed by JetBrains. It is available on Windows, OS X and Linux.

It provides support for common Python frameworks such as Django, Flask, Pyramid and others.

Starting with version 3, a free and open-source edition of PyCharm was released; along with a professional (paid) edition.

If you have found a bug, it is usually better to report it at the public bug tracker.

For more information, browse the following:

  1. The official product page.
  2. The public bugtracker.
  3. Product blog.
  4. Support page.
16686 questions
7
votes
2 answers

Pycharm: Marking a folder as 'sources root' is not recursive for subfolders

I've followed pycharm documentation to set up the IDE to resolve imports. However it seems that each folder containing *.py files needs to be explicitly added as 'sources root' in order for the IDE to resolve all references. Can this be done…
rnoodle
  • 534
  • 2
  • 5
  • 21
7
votes
4 answers

Can PyCharm reuse a console for running code?

I'm currently trying out PyCharm (Python 3.5 from the Anaconda distribution) and can't find a way to run code in an already open console. As an example, consider the following code: from time import time now = time() from inspect import…
bjarkemoensted
  • 2,557
  • 3
  • 24
  • 37
7
votes
1 answer

Change color of __init__ and other predefined items in Pycharm's syntax highlighting

I'm colorblind and I can barely make out the __init__ when it is on the current line where the caret is, as in this example: I just can't see it against that highlighted "caret line" background. Same problem for __repr__, __str__, and other such…
Jean-François Corbett
  • 37,420
  • 30
  • 139
  • 188
7
votes
3 answers

PyCharm changes system keyboard layout

I'm using PyCharm Community Edition 2016.3 Build #PC-163.8233.8 on Windows 10, and it erratically changes the system-wide keyboard layout from German to English. I want it to stop doing that but haven't found any setting related to this. My problem…
7
votes
2 answers

PyCharm is changing the default encoding in my Django app

I am running into an issue where plyplus is erroring out with: File "/Users/FOO/.virtualenvs/ff/lib/python2.7/site-packages/plyplus/grammars/__init__.py", line 6, in open return _open( os.path.join(os.path.dirname(__file__), grammar_name)…
Krystian Cybulski
  • 10,789
  • 12
  • 67
  • 98
7
votes
4 answers

what is the shortcut for "replace all" in pycharm

I want to hit a shortkey and replace all in Pycharm. After I hit ctrl+R, I key in text to search and text as replacement. I need to click "Replace" / " Replace all". I currently move my hand to mouse and click the button, but I do it many times in…
Lisa
  • 4,126
  • 12
  • 42
  • 71
7
votes
1 answer

Fonts Corrupted

All of a sudden, fonts got corrupted on my python editor and I don't know what's the cause or how to go about fixing it. OS - Windows 10 Editor - PyCharm Community 2016.2.3 Here's what I have tried so far (non of which worked) Play with DPI scaling…
WeShall
  • 409
  • 7
  • 20
7
votes
1 answer

Delete opening and closing quotes (or brackets,braces,etc) at once

The opening and closing quotes (or brackets, braces etc) are highlighted in PyCharm(and other editors). So this means it can identify the pair. Now, is there a way to delete both the quotes at once (or brackets, braces etc) when either of the…
Mohammad Yusuf
  • 16,554
  • 10
  • 50
  • 78
7
votes
1 answer

Pycharm run "Debugger speedups using cython" on docker hosted app

I have a strange issue that I can't seem to get to the bottom of. My django project is set up using docker-compose version: '2' services: db: image: postgres:9.6.0 environment: POSTGRES_PASSWORD: docker …
7
votes
1 answer

How to watch a variable with PyCharm?

Is it possible to "watch" a variable with PyCharm? I want to see the values a variable takes on as it runs through a loop. Or is there something like console.log()? I am aware of breakpoints (I don't want to break), print and pprint :). It would be…
Christof
  • 3,777
  • 4
  • 37
  • 49
7
votes
1 answer

How to autocomplete list of all arguments to function in PyCharm?

How to autocomplete list of all arguments to function in PyCharm? I want to autocomplete arguments for function like in PyDev. def do(a, b, c): pass After typing do() I want to autocomplete to do(a, b, c) - is it possible in PyCharm…
Chameleon
  • 9,722
  • 16
  • 65
  • 127
7
votes
2 answers

How to use Docker and PyCharm on Mac?

I have installed Docker for Mac(not toolbox). It works, but now I want to use PyCharm with Docker and I don't understand from where I need get this data? Should I first create machine? docker-machine create --driver virtualbox default but if I want…
comalex3
  • 2,497
  • 4
  • 26
  • 47
7
votes
1 answer

Pycharm: set environment variable for google service account key (json credential)

I want to run the google cloud speech python sample in my pycharm. But encountered the ApplicationDefaultCredentialsError: The Application Default Credentials are not available. They are available if running in Google Compute Engine. Otherwise, the…
7
votes
3 answers

Debugging django-channels

I'm trying to incorporate django-channels into my next project but I am having issues debugging. I have tried pycharms debugger and also pdb but it does not hit the breakpoints.
Mantis
  • 1,357
  • 3
  • 27
  • 49
7
votes
3 answers

Embed Plotly HTML in PyCharm IDE

I would like to see Plotly's HTML output in the PyCharm IDE. It currently says: Process finished with exit code 0 for the output. However, I receive a graphical result in Jupyter
Sterling Butters
  • 1,024
  • 3
  • 20
  • 41