Installing Python plugin with WebStorm - python

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:

Related

How to set up python interpreter for pyCharm for Mercurial Hooks

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.

Problems with python plugin for Intellij IDEA

I installed python plugin for Intellij IDEA.
IDEA version: 14.1.4
Plugin version: 4.5.141.1624
I am on Windows 7 and I have installed python to C:\Python34. Python is added to my PATH variable too.
When I edit python files on IDEA, it shows various errors in my python scripts. Following are some of them.
How can I get rid of these errors?
Here is my python console settings. I cannot set a python interpreter. There's no items in the dropdown.
I had the similar problem when I did not define SDK for project during creation of python project. Unfortunately I could not find any option in settings to do so. But I found some solution. Maybe it is little bit work around but it worked for me.
I just created new project by using File/New/Project
I selected Python type of project and click New to define Project SDK (Unfortunately I could not post picture with example I am pretty new in SO)
After that Idea configured itself in such way that in my old project I was also able to select this SDK. I tried to define such SDK by edition of settings file of IDEA but I was not able to do this in such way.
After defining few SDK It is also possible to change it for one of your module even if you did not do this on the beginning. You just need to:
open configuration file for module module_name.iml file
find there line <orderEntry type="inheritedJdk" />
change it to description of on of Python SDK for example
<orderEntry type="jdk" jdkName="Python 3.4.3 (F:\Python34\python.exe)" jdkType="Python SDK" />
I hope that this will help.
I am using:
InteliJ IDEA 14.1.4
Python Community Edition plugin version 4.5.2 141.106
And python 3.4.3

How can I get Python working in an existing NetBeans?

I'm running a standalone ZIP of NetBeans 7.3.1 and I am wondering if it is to get Python support going with this. I know there is a standalone download for Python support, but I was hoping I could get it going in my install. Is this possible?
Check this out: https://blogs.oracle.com/geertjan/entry/python_in_netbeans_ide_7
It provides decent plugins that allow for some python and jython dev functionality.
Edit:
In case you don't know how to add the plugin source in Netbeans you need to navigate to:
Tools > Plugins > Settings > click the "Add" button and add
http://deadlock.netbeans.org/hudson/job/nbms-and-javadoc/lastStableBuild/artifact/nbbuild/nbms/updates.xml.gz
as the URL. The python plugins will then be visible under "Available Plugins".

Using pydev with Eclipse on OSX

I setup PyDev with this path for the python interpreter
/System/Library/Frameworks/Python.framework/Versions/2.5/Python
since the one under /usr/bin were alias and Eclipse won't select it. I can run my python script now but cannot run the shell as an external tool. The message I get is
variable references empty selection ${resource_loc}
Same if I use {container_loc}
Any thoughts ?
Sunit
I installed the Python.org version as well, this is a must.
I finally got PyDev working in Eclipse by pointing the interpreter to:
/Library/Frameworks/Python.framework/Versions/2.6/bin/python
manually. If you don't do it manually (by using the Autoconfig) it seems to not find the right version.
Common practice seems to be to install an up-to-date Python 2.5 from python.org and use that instead of the system installation. I saw that recommended here and there when I got started on Mac OS X.
It installs under /Library (as opposed to /System/Library) so the system Python is intact. Pydev has /Library/Frameworks/Python.framework/Versions/2.5/Resources/Python.app/Contents/MacOS/Python as its configured Python interpreter and all is well.
Can't state for sure that your trouble is due only to using the system's Python installation; in any case this way I have no trouble. Also, this way when you fiddle with your development environment (install things in site-packages, upgrade Python), anything that uses the system Python is sure to be unaffected.
I know this is a ancient post... but, in case of some newbee like me to get the better answer.
I just using "Eclipse Marketplace" from the "Help" menu and search for keyword "python" or "PyDev" to get PyDev, and get it successfully installed.
AND, you should add PyDev to the top-right dock.
For the instance, my eclipse on my laptop's OSX is (Version: Indigo Service Release 2 Build id: 20120216-1857).
Have fun, folks! :)
I believe ${resource_loc} or ${container_loc} (without any argument) are based on the current selection in your workbench when you are launching your script.
So are you selecting the right resource when selecting that script through the "external tool" runner ?
At least, click on the project name before you run one of the external programs.
Note: it works with a selection in the Navigator or Package Explorers views (the latest might not be available in PyDev environment though)

Import an existing python project to XCode

I've got a python project I've been making in terminal with vim etc.. I've read that XCode supports Python development at that it supports SVN (which I am using) but I can't find documentation on how to start a new XCode project from an existing code repository.
Other developers are working on the project not using XCode - They won't mind if I add a project file or something, but they will mind if I have to reorganise the whole thing.
I don't think it's worth using Xcode for a pure python project. Although the Xcode editor does syntax-highlight Python code, Xcode does not give you any other benefit for writing a pure-python app. On OS X, I would recommend TextMate as a text editor or Eclipse with PyDev as a more full-featured IDE.
I recommend against doing so. Creating groups (which look like folders) in Xcode doesn't actually create folders in the filesystem. This wreaks havoc on the module hierarchy.
Also, the SCM integration in Xcode is very clunky. After becoming accustomed to using Subversion with Eclipse, the Subversion support in Xcode is hopelessly primitive. It's almost easier to just do svn commands on the command line just so it's clear what's going on.
If you must use Xcode, use it to open individual py files. Use it as a slow, relatively featureless text editor.
If you must use Xcode for SCM, take a look at their guide to using Xcode with Subversion.
There are no special facilities for working with non-Cocoa Python projects with Xcode. Therefore, you probably just want to create a project with the "Empty Project" template (under "Other") and just drag in your source code.
For convenience, you may want to set up an executable in the project. You can do this by ctrl/right-clicking in the project source list and choosing "Add" > "New Custom Executable...". You can also add a target, although I'm not sure what this would buy you.
Also see:
http://lethain.com/entry/2008/aug/22/an-epic-introduction-to-pyobjc-and-cocoa/

Categories

Resources