I have installed the Pycharm Community edition and installed the behave 1.2.5 with the following command.
pip install behave
It was successfully installed and it is available in the Pycharm Project Interpreter as shown below.
But I don't see an option to create the .feature file (Gherkin file) when I right click on the project
Do I miss anything over here, in Pycharm professional by default Behave BDD is available. How do I configure the behave with Pycharm community.
AFAIK "BDD support is available only in the PyCharm Professional Edition."
Of course, nothing prevents you from creating a file with the .feature extension but you are not going to see options to run your scenarios. You can get some syntax highlighting using the Gherkin plugin and that is as much as you get in the community edition.
how to install gherkin plugin on PyCharm
You can access the Settings by Ctrl + Alt + s and install the gherkin plugin. I just did that and is helping a lot.
Related
I am very new to Python and am trying to learn it so that I can write Mercurial hooks (https://www.mercurial-scm.org/wiki/MercurialApi).
I downloaded PyCharm by Jetbrains with the hope that I could start writing a python script and have the IDE autocomplete for me so I could see what available functions objects have etc. I started with this:
#!/usr/bin/env python
from mercurial import ui, hg
# change . to the path to the repo
repo = hg.repository(ui.ui(), '.')
ui.warn('asdfsadf')
However, as no Python Interpreter is configured, I can't autocomplete (or, at least that's what I think the issue is). I do have Mercurial installed, and when I do pip list I do see the library listed, but PyCharm doesn't know about it. How do I configure thing so that the libraries I want recognized by the IDE get recognized? I know that there are settings which can be set, but I don't understand which ones I want for my purpose.
I found that this post How do I import modules in pycharm? helped me a lot to add the appropriate project interpreter.
Is there a way to install the Python plugin on WebStorm?
Some StackOverflow posts say to go to project settings (or project structure), then go to "modules", but I think that is just for IntelliJ and not specifically WebStorm, as I can't seem to find it.
I also downloaded https://plugins.jetbrains.com/plugin/631-python, but when I try to "Install plugin from disk" on the .zip file, it says
plugin python is not compatible with this installation.
That is not possible: this plugin is not compatible with WebStorm (as WebStorm does not have other plugins/functionality that is needed for Python plugin).
List of supported IDEs is clearly written at the top of that page:
If you need full Python support, have a look at PyCharm -- JetBrains IDE for Python: https://www.jetbrains.com/pycharm/
If you just want some syntax coloring for Python code: have a look at this answer: https://stackoverflow.com/a/25545919/783119
Also: https://intellij-support.jetbrains.com/hc/en-us/community/posts/115000634624-Python-support-for-webstorm
I found a way to run a python script in webstorm. I needed it to run the backend part of the project. I add node configuration to run configuration and edit interpreter to python path
This is the node configuration:
I am currently using Pycharm. What I like about PyCharm are the following:
Simplicity of creating virtualenvs
Intellisense
GUI package installer
Console (automatically activates the venv)
However, I also lacked the following
intellisense for javascript (I believe they require a paid
license)
I recently tried visual studio but it lacked
GUI package installer
Is there an ide that can give me all the aforementioned features? I need to use this ide for full stack development in Python
I'm trying to get a Django project working with PTVS. The only reason I'm using it is because I have Azure credits and want to deploy there. In Visual Studio, I go to New Project > Python > Django. I chose "Add Virtual Environment". Here is the screenshot:
After the project is created, this is my solution explorer:
You can see django is definitely installed in the environment. But when I right-click on the app and go to Python > Sync DB, I get a bunch of errors says that
ImportError: No module named django.core.management. All the django package statements are underlined and they can't be imported. Any ideas?
When I go back to create another project and I do "Install into Python 2.7 directory," it works fine. So I don't understand why I can't use the virtual environment.
Go to your Projects folder and delete all the application/projects.
Clean the project directory. (By default this is the PATH: Documents/Visual Studio 2013/Projects
Close all the other IDE's and Programs that might be using your
python interpreter.
Set no-proxy in case you are using some proxy settings because it
will prevent Visual Studio from downloading and installing the required
packages.
You might prefer restarting your machine before performing these steps.
It worked for me. I had the same problem.
Below are two useful tutorials to walk you through the entire process.
PTVS 2.0 Beta: Creating a Django Website : A step by step guide
Django and MySQL on Azure with Python Tools 2.1 for Visual Studio
I'm using IDEA CE 13.1.1 and tried to install the Python plugin version 3.4.Beta.135.1 from file because my development PC has no access to internet for security reasons. But get following warning and the plugin get not activated:
Plugin Python depends on unknown plugins org.jetbrains.plugins.yaml, org.jetbrains.plugins.remote-run, Coverage
I searched for these plugins in the repository but did not find them, only references in other plugin details that depend on them.
How are they really called? How can I find them?
Thanks
Yes, for the Intellij IDEA Community Edition there is a Python Community Edition plugin.
Here is the link http://plugins.jetbrains.com/plugin/7322?pr=idea_ce
You can't use Python plugin with Idea Community edition, sorry. It requires IntelliJ IDEA Ultimate.