Pycharm Questions
Ad
Is it possible to include c code in python in pycharm?
I'm trying to speed up some code that i have written in python and have thought about writing some code in c to do so. however, i am using pycharm
Images Have Grey Values of True and False
I'm planning to process some images using pycharm. however, i find a bug and start to find the reason. finally, i find that the images have grey
Git does not use SSH key (Windows)
I created a ssh key for my gitlab repository and when i test it with ssh it does work and asks for the passphrase: >ssh -t
PyCharm weird Type warning
Why does the following code: v = [none for _ in range(3)] v[-1] = 0 <<< tell me
Re-run code from certain point onwards in PyCharm
I am running quite a time consuming python code in pycharm, where data is initially loaded, then a model is created etc. i would like to
Error while finding module specification for 'pyspark.worker' (ModuleNotFoundError: No module named 'pyspark')
I'm trying to run a pyspark program, but i'm getting an error: python.exe: error while finding module specification for
Is there an easy way to put my entire installation of PyCharm and WinPython on a USB stick?
I want to have a self-contained installation of python on a usb stick as i don't have enough room on my laptop to install anaconda etc. this will
How can i run "pip install" from a pycharm python script?
I'm trying to run this line of code from the beginning of a python script in pycharm: !pip install pyknow but it
Making PYTEST quieter when run from PYCHARM
Update: the messages shown below are not controlled by pytest various "-q" quiet options. they are coming from the teamcity plugin... see my
Redeclared 'button' defined above without usage
i try to automate testing of an internet site in pycharm. there is a warning in line 15: “redeclared 'button' defined
Ad
PyCharm 2019.2 not showing Traceback on Exception
Very simple minimal example: if __name__ == '__main__': print("still ok") raise exception("dummy exception")
How do I find the false positive and false negative rates for a neural network?
I have the below code which works perfectly for a neural network. i know i need the confusion matrix library to find the false positive and false
Use a different fixed type for interfaces defined in the base class for subclasses
I have a baselist container that takes baseitem's as items. i then derive a new list customlist and i want
Neural style transfer using python iterable error?
I am trying to implement the neural style transfer example in pycharm. link
How can I reduce the size of PyCharm's content.dat.storageData cache?
My content.dat.storagedata file for pycharm is huge (~8gb); is there any way for me to make it smaller? ideally i'd also like to be
How to select option in webpage using scrapy
Consider this website there is a select option for year
PyCharm import matplotlib.pyplot show error
Import numpy as np import matplotlib.pyplot as plt def main(): x = np.arange(0, 5, 0.1) y = np.sin(x) plt.plot(x, y) if
Why does the Pycharm show AttributeError: module 'numbers' has no attribute 'Number' when I debug a program, but no error happened if I run it?
Traceback (most recent call last): file "e:\program files\jetbrains\pycharm 2019.1\helpers\pydev\pydevd.py", line 15, in <module>
It is hard for me to understand the difference between Idle and Pycharm
If i put a simple code like 3 == 3 on pycharm i can see it's 'true' or 'false' but on idle it shows
IDE deduce python type
I am writing a method in python, which looks something like this: def
PyCharm CE does not recognize .pyx files
Pycharm community edition (ce) does not recognize few cython files as shown in the picture below (with pycharm red mark under the file name).
Ad
How to get image src cascaded inside div
Here is my xpath: img = hxs.xpath("//div[@class='gallery-images']/a//figure[@class = 'gallery-images-item']/img/@src").get()
How to crawl the links in list inside a div
Consider this statement: url=hxs.xpath('//ul[@class="product-wrapper product-wrapper-four-tile"]/li/div/div/div/div/div/a').get()
What does Pycharm do when a new project and new interpreter is created / selected? (Skeleton?)
So, other than indexing, more processes that takes hours start when i create a new porject and i select conda interpreter. below is a snapshot.
Delete PyCharm and all associated directories
Pycharm version 2019.1.3 os: macos 10.15 beta i am trying to delete pycharm and all associated directories. i did some research and found
Cannot Install PIL using Pycharm
Hi i'am trying to install pil using pycharm. i am using pip 19.1.1 when i try to install pil this error occurs collecting
how to automatically open url(not click open) http://127.0.0.1:8000 python manage.py runserver in pycharm terminal
I would like url (http://127.0.0.1:8000) to automatically open the browser (by
PyCharm not hitting Quick and Dirty breakpoint on "pass"
I want to add a quick & dirty breakpoint, e.g when i am interested in stopping in the middle of iterating a long list. for
"Ambiguous Class Definition" for classname "I" (Pep8 in Python)
Question: why does pep8 raise a warning pep8: amiguous class definition 'i' when i try to define a class of name
How to restart linked Docker Compose services in PyCharm's Run Configuration?
I'm trying to use a django server run/debug configuration in pycharm with a
npm: not found when creating a reactapp using NVM, NPM, in Pycharm
I am trying to create a react project in pycharm. i am using nvm version 0.34.0, and installed node using
When I try to run or debug my code in Pycharm I only get errors
When i try to debug my "hello world" program in python on pycharm i get following error messages and could not find any solution online yet. this
Ad
How to suppress warning "Access to protected member" in pycharm method?
I have some class class a(object): def __init__(self, data): self._data = data def _equals(self, other):
Is it possible to "hint" dictionary keys?
In pycharm code completion > "basic
Pycharm Warnings: Expected 'collection.iterable', got iterator instead
I have a code like below in python 2.7 in pycharm 2018.3 dep_services = ['fdb'] for s in reversed(dep_services): # this line is
How to write to a file by using (or changing) print using Python 3.x
Im using an api from interactive brokers to get historical data and i am using their code to download the data. the code uses the print
how to fix Unused import statement when importing module
Geniuses, today i tried to convert py to exe, but it doesn't work and i got this: a project output will not be moved to output folder
wxpython-phoenix requires python framework on osx/ipython/pycharm
Running the sample hello-world code offered on wxpython-phoenix
How does PyCharm create a virtualenv that works with Matplotlib on macOS?
I'm on macos 10.14.3 using python 3 installed via homebrew, and i have installed virtualenv with pip: $
Pycharm: virtually change name of package
I have a python project, with a source tree like: |-src | |- module1 | | |- tests | |- module2 | | |- tests |- ...
ImportError: No module named 'selenium' in PyCharm
I have installed all the file and packages like python, pip, selenium and i am running a python code in pycharm, but it is still showing me this
Can't import TF using PyCharm and venv
I read this,
Ad
to print the variable values in python in debug mode ( pycharm is the IDE)
I want to print the value of variable on the pycharm console while in the debug mode in python. how can i achieve this?
PyCharm 2018.3.3 reformat code leads to broken literal string
It appears that the default settings for automatic reformatting of python code in pycharm 2018.3.3 (which i'm using) breaks f-strings, as can be
Printing a sequence with the amount of terms based on input using for-loops in Python
So how would i go about creating a simple program like this using a for-loop? it would ask the user for an input and then print the following
How to calculate the total of all the number between 1 and the number that the user entered?
I have to ask the user to enter an integer number and the program will calculate the total of all the number between 1 and the number that the
Django: sqlite3 failes to find the path of sqlite file
Connection to django default failed. path to 'c:\users\nblizz\workspace\files\myweb\web\db.sqlite3':
Why are some functions omitted in `dir()` output?
In the python console started by pycharm, it looks like runfile is an imported function: in[21]: runfile out[21]:
I already install pygame. pycharm gave me not installed pygame
I'm already installed python, pycharm, some packages.. and pygame installed on python i can see version at python shell, and i cant see pygame at
Static type check for abstract method in Python
How do i make sure that a method implementing an abstract method adheres to the python static type checks. is there a way in pycharm to get an
How to see what data inside an SQLite database using PyCharm?
I am beginner in python,i now using flask and sqlalchemy for creating simple database like below: ..import all the stuff here
Models.py Issue (Keys)
I'm trying to make a basic web application for as a small project and i'm facing an issue where whenever i use any type of relationship between 2
AttributeError: module 'selenium' has no attribute 'webdriver' using Selenium webdriver through PyCharm
I have pycharm with anaconda as my interpreter. selenium is successfully installed and its webdriver is accessible when i use jupyter notebook but
Ad
Use Docker Image as Python interpreter in PyCharm
Being a beginner to docker, i want to know that how can i use a docker image ( downloaded from docker hub ) as a python interpreter in pycharm on
Is there a shortcut in PyCharm which highlights a code block
In intellij, if you double click after open flower bracket ({), it automatically highlights the entire reachable code block. is there a similar
DataFrame view in PyCharm when using pyspark
I create a pyspark dataframe and i want to see it in the sciview tab in pycharm when i debug my code (like i used to do when i have worked with
Error on loading OpenCV EAST text detector in Python
I'm trying to use east text detector to detect areas of text in images, but am having trouble on loading the pre-trained east text detector.
What is the shortcut key to comment multiple lines using PyCharm IDE?
In this video, at "3:06" time, how did he commented multiple lines together by
How to enable code completion for custom modules in PyCharm?
When i import a module such as numpy by typing import numpy as np, and then start typing np.... pycharm
Package installation in Pycharm using Conda will not work
This forum has helped me so much in the past months but now it was time to post something myself because this is the first problem i was not able
How to avoid unexpected argument warning using dataclasses?
I have the following simple code. @dataclass(frozen=true) class test: a: bool = true b: bool = true c: bool = true
How to connect Python with Dialogflow Chatbot
I have created a chatbot in dialogflow, i want to now implement this into my own python environment with pycharm. what remaining steps must i take
Why doesn't PyCharm unit-test discovery work on directories?
When i right-click on a test module (file) and choose run unittests in ..., pycharm does this, using its test-gui. when i
I can't get dictionary to work at all in Pycharm
I can't get dictionary functions to work in pycharm. i know something must be wrong with my pycharm settings, because i can run extremely simple
Ad
In PyCharm, should I use embedded terminal or running console?
In pycharm, i have 2 methods to run my code: press ctrl + alt + f10, then the code will run in running console.
Python - my web application keep displaying "Hello World!"
So, i'm facing an issue here. i have installed flask and tried to run the code sample in order to test: from flask
How to move caret to console in pycharm?
Is it possible to have a keyboard shortcut to move the caret from editor to console and back in pycharm? i can switch the focus between editor and
Can't Change Jetbrains Pycharm python interpreter from 3.6 to 2.7
I'm using pycharm community edition for learning. and i need to change the project interpreter to 2.7. i have linux ubuntu 18.04 and i downloaded
How do I use newer pip after the upgrade? (10 --> 18)
I'm using python 3.6 on pycharm venv (virtual environment provided by ide) terminal kept telling me to upgrade my
How to move instance properties to instance initialization in IDE?
I start learning python and some things are not clear for me. in kivy framework i do ui button like this: btn =
Missing intellisense, autocompletion in for loop
I'm doing simple for loop through my node lists. nodelist = obj.get_nodes_list() for node in nodelist.items: print node.
PyCharm warning "End of statement expected" inside of type hints
I'm getting this weird "end of statement expected" warning inside of a comment, which functions as a python 2/3 type hint:
How to navigate to definitions of the base class in another file in PyCharm?
I have a project in the pycharm editor in which the base class and the child class are implemented in separate files. in the child class i am
Pycharm: Run Django from virtual env
I have a django project in pycharm with a virtualenv named venv my terminal path is: (venv) c:\projects\django\deya>
Python 2 type code-completion in JetBrains?
Class a: """ a attributes: type (int): type field required ([str]): required field """ type = none # type: str
Ad
Unresolved refrence when changing a value on datetime on PyCharm
I have the following code: from datetime import datetime ,timedelta import airflow.macros args = { 'owner': 'airflow',
Installation of packages Pycharm 64-bit fails
I was previously on the path on working towards being able to obtain sec 10k filings from edgar, wherein i used a bloggers code for inspiration.
conda virtual environment not working with pycharm
I have a script gapminder1.py which uses the panda and sklern. # todo: add import statements import pandas as pd from
PyAutoGUI charmap install error (Windows 10)
When installing pyautogui package i got this error: collecting pyautogui using cached
Changing default window position in PyCharm
How do i change the default window position? the output window when i run a script defaults to the bottom, but i prefer it to the left, so every
Pycharm doesn't detect installed pymongo package
Update: pycharm can now locate the package, but i can not seem to import anything from the package itself.
Is my in-class decorator not Pythonic enough or PyCharm not smart enough in lint warning?
I want to define a decorator within a class. i don't want to define it as a separated, independent function, for this decorator is specifically
python3 import issue on PyCharm
I'm annoyed about the import logic when i write python3 code in pycharm community edition, below is my structure. project
DLL load failed when importing PySide2, only while debugging
Im facing a strange issue. i have downloaded and installed the qt for python library
What is the correct way to check an object's type in a conditional statement - python
What is the correct way to check an object's type in a conditional statement? edit: it seems i have misdiagnosed the issue. my conditional
TensorFlow: How to use 'tf.data' instead of 'load_csv_without_header'?
2 years ago i wrote code in tensorflow, and as part of the data loading i used the function 'load_csv_without_header'. now, when i'm running the
Ad
Different behaviour in normal and debug run in threaded Virtualbox
I'm encountering a weird error when running the script in pycharm's debug mode or inside a flask app. i have narrowed down my code to the
Python: AttributeError: 'int' object has no attribute error when I passing user defined object
I have a microphone class with this structure: class microphone(object): # microphone class def __init__(self, x, y, limit):
Simulating argparse command line arguments input while debugging
This thread is an extension from the previous that can be found
To get notification is that must to keep pycharm open in my pc?
To get notifications is that must to keep the pycharm online? everything work fine and pushing notifications but when i close
Why Is This Day Counter Producing The Wrong Results?
Hi i'm a beginner at python and am currently using python 3.4.1 on pycharm. i have recently made a project that calculates the amount of days
error: error in 'egg_base' option: 'src' does not exist or is not a directory
I'm trying to install python packaging tools in pycharm ce ubuntu 18.04 and this error occurs. excuted command:
Python : Compare CSV files and save the difference with first row(Column Names)
I have two csv files as shown below: file 1: june_01_2018.csv
PyCharm executables for solver not found
Running a python+pyomo optimization with pycharm results in the error, that the executable cannot be found for the solver. i tested it with glpk
Adding code templates in the PyCharm - is it possible?
I want to add a new code template/snippet to pycharm. for example, i want to expand lw to log.write_line("|here is
Git command customizing in PyCharm
I'm using git under pycharm. however, when i look at what pycharm does with the git ("console" tab of the version control view), there's a
Ad
Variable can be not defined
I have this piece of code: from django.db import transaction with transaction.atomic(): try: variable = 1 except
Django Admin Template OverRide Issue
I'm currently using django 2.0.5 for pycharm-2018.1.2 i recently started working on my first project which basically requires me to work on the
Ad
Blog Categories
Ad