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".
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 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
I was just wondering if there was a way to get Python (in Netbeans) to recognize the methods that I write in a class. For example when I do self.method() I just want Netbeans to recognize it's a method in the class I am currently in. Does Netbeans 8.0 Python IDE not support that right now, or is there something I can do to make Netbeans recognize them?
There are several plugins available in netbeans plugin portal from which you can download and install them to your netbeans. Here is a link: http://plugins.netbeans.org/plugin/61688/python
These will support minimal editing, building, debugging.
These are also available in Netbeans plugin menu. You can also download it from there!
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/