Python support in NetBeans
This project is a community-driven effort. Oracle does not actively participate in or directly support this effort.
If you are using NetBeans 8.1, you can access the plugin directly from the IDE 8.1 Tools->Plugin menu. See also the Python 8.1 plugin page
This plugin ONLY works with IDE 8.1. For questions and comments, log on to forums.nbPython.org
If you are using NetBeans 8.0.2, you can Get started with Python in NetBeans IDE 8.0.2
For ALL other ways to install Python in NetBeans, see the PythonInstall page.
Visit the Python Project wiki page! We are looking for volunteers to help with testing and coding!
- For the latest high-level information, see http://nbPython.org
- To ask questions or make comments, log on to http://forums.nbPython.org (simple registration required - please use your NetBeans username)
- For setting up Python support on NetBeans IDE, see PythonInstall
- To browse the sources of the Python support, see the files directory at http://hg.netbeans.org/main/contrib/ (the ones that start with "Python")
- Tips to build Python support from sources: NbPythonHgBuild
- Using the NetBeans IDE for Python Development: NetBeansPythonTutorial. Preliminary IDE HelpSets are also available.
- Debugging primer: Python Debugger Primer
- Jython development with NetBeans: Developing Jython Apps Using Netbeans
There are several mailing lists serving different purposes:
- For Using the NetBeans Python plugin, use the email@example.com mailing list (subscribe, unsubscribe, archives)
- For Developing the NetBeans Python plugin, use the firstname.lastname@example.org mailing list (subscribe, unsubscribe, archives)
- See also the NetBeans Developers forum (post a message on this forum if you would like to contribute!)
- To track issues, use the email@example.com mailing list
- To be notified about commits, use the firstname.lastname@example.org mailing list
Code completion is available for
- Local variables
- Other known classes and functions
In addition, documentation is shown when available.
Smart Indent, Outdent, and Pair matching
Pressing the return key will indent or outdent in a smart fashion. Matching for (), [[ | ]], , and "" is supported.
Editor hints provide the capability to dynamically check the syntax and the semantics of your python code.
Detailed descriptions of the available python hints are available in this document.
Classes, methods, functions, and triple quoted strings can be folded to conserve screen real estate and reduce clutter.
Syntax highlighting reflects the semantics of the program: local and global variables are colored appropriately (and differently)
Placing the caret on a variable shows other uses of the variable. Placing the caret on a function or method call shows other calls to the function or method.
(Note - this screenshot is a bit old, and the bug shown here (the scope of name incorrectly includes for example the parameter in the nested function "withversion") has been fixed)
The debugger is derived from Jean-Yves Mengant's jpydbg debugger. A primer is available here at : http://wiki.netbeans.org/nbpythondebuggerprimer
Multi-threaded debugging: http://jpydbg.blogspot.com/2009/01/jpydbg-mutithreaded-python-debugger.html
Python Platform Manager
The Python platform manager lets you specify which Python runtime (CPython or Jython) you wish to use. You can control which CPython is used, as well as specifying values for command line arguments. It is also possible to set the PYTHONPATH variable to set the Python load path.