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
1 answer

Pymongo's update_one() returns UpdateResult with AttributeError

I just upgraded my MongoDB and Pymongo to the latest version 3.2.1 to be able to use the UpdateResult object after calling update_one(). But for some reason the returned object has one field that contains an AttributeError. Take a look at my Pycharm…
BeePi
  • 343
  • 1
  • 2
  • 8
7
votes
3 answers

Adding Flask support to an existing Pycharm project

I'm working on a small project where it would be helpful to display trivial web pages. It's being developed in PyCharm, the pro edition. This is an existing project, so it wasn't created as a Flask app to begin with. I've added Flask to my…
Mikey T.K.
  • 1,112
  • 18
  • 43
7
votes
2 answers

Matplotlib imshow in Pycharm Ipython not always displaying image

I'm using Pycharm IDE for Ipython and like it a lot. However, recently I'm having trouble with the matplotlib pyplot imshow function. Sometimes it works properly and displays an image but other times it just hangs (the cell is not executed, its…
mistakeNot
  • 743
  • 2
  • 10
  • 24
7
votes
1 answer

Combining PyCharm, Spark and Jupyter

In the current setup I use a Jupyter notebook server that has a pyspark profile to use Spark. This all works great. I'm however working on a pretty big project and the notebook environment is lacking a bit for me. I found out that PyCharm allows you…
Jan van der Vegt
  • 1,471
  • 12
  • 34
7
votes
5 answers

pulp.solvers.PulpSolverError: PuLP: cannot execute glpsol.exe

I am a newbie with python and optimization. I am getting some error, please help me resolve it. I tried running the below mentioned code in PyCharm where I am running Anaconda 3 from pulp import * x = LpVariable("x", 0, 3) y = LpVariable("y", 0,…
Rahul Bajaj
  • 71
  • 1
  • 1
  • 3
7
votes
2 answers

ideavim :normal ex command not supported?

I'm using pycharm and ideavim plugin for vim-like editing. When I using :normal command, I was told "Not an editor command: normal" Is there an alternative way to be done my work (for multi-lines run same macro), or there's a way to add normal…
jixiang
  • 400
  • 1
  • 2
  • 10
7
votes
1 answer

Using while loop in Pycharm and Kivy

how can i use while loop in this code to read serial every 2 second and show it in a Label? this application will hanged in run and i'm new to python to solve this. from kivy.uix.gridlayout import GridLayout from kivy.uix.label import Label from…
A.M
  • 345
  • 4
  • 13
7
votes
1 answer

Why is PyCharm removing /usr/local/bin on a Mac while using a Python virtual environment

Running this on Mac OS X El Capitan 10.11.1 in PyCharm 5 (This was working fine in PyCharm 4.5) import os print("PATH:", os.environ.get("PATH")) If I run this program with PyCharm's project Interpreter set to System's Python:…
Ajay Gautam
  • 997
  • 12
  • 14
7
votes
3 answers

Pycharm : import Boto 3

I followed the steps on this installation guide : https://boto3.readthedocs.org/en/latest/guide/quickstart.html#guide-quickstart After I did all the steps I still can't import boto3 in my Pycharm python file. I'm using python 3.4.3.
user5488652
  • 421
  • 3
  • 8
  • 15
7
votes
3 answers

Drop frame while debugging?

I'd like to know if drop frame is available in PyCharm / Intellij with Python plugin. Here's what the button looks like (it doesn't show up on the debug toolbar so I assume it's just not available for PyCharm) --> How to step one step back in…
Nick463
  • 225
  • 2
  • 11
7
votes
2 answers

how can I view the schema of my sqlite database in pycharm?

I have sqlite database in a django project and everything works fine. But seeing django dbshell does not work with sqlite I found pycharm has a database connector/manager but I can't find where I can input sql commands or see the schema. Thanks
maazza
  • 7,016
  • 15
  • 63
  • 96
7
votes
2 answers

Unit tests in pycharm are running twice

I need to generate a test report using HTMLTestRunner ,for that code (which is placed at the end of the file) is: suite = unittest.TestLoader().loadTestsFromTestCase(TestLoginPages) outfile = open("/home/xxx/xxx/xxxx/report.html", "w") runner =…
Avanti
  • 323
  • 5
  • 14
7
votes
5 answers

java.io.IOException: Cannot run program "python" using Spark in Pycharm (Windows)

I am trying to write a very simple code using Spark in Pycharm and my os is Windows 8. I have been dealing with several problems which somehow managed to fix except for one. When I run the code using pyspark.cmd everything works smoothly but I have…
ahajib
  • 12,838
  • 29
  • 79
  • 120
7
votes
1 answer

What is the use of PyCharm's docstring template? How do I use it effectively?

PyCharm, the Python IDE generate a template for docstring as I start to type in the docstring. This is the template generated for a simple function. def add_them(x, y): """ :param x: :param y: :return: """ z = x + y …
user3348051
7
votes
4 answers

Pycharm cant open manage.py task

In one of my projects , I cannot open manage task console. It works for other projects but not for this one. It worked before, but it stopped recently. I tried using old versions of the project, but its still broken. I get this error: Failed to…
Luka Prelic
  • 181
  • 2
  • 12