Geertjan's Blog

  • December 10, 2014

Python in NetBeans IDE 8.0.2

Geertjan Wielenga
Product Manager

Let's get started with Python in NetBeans IDE 8.0.2.

Take the following steps:

  1. Prepare. Watch this YouTube movie:

  2. Make Sure You're Prepared. Watch the movie again. It takes less than 5 minutes.

  3. Get the Correct Version of NetBeans IDE. Download NetBeans IDE 8.0.2, the "Java SE" distribution, which is the one where I've tried the scenario below. You're free to choose any other distribution, I'd recommend never using "All" except if you really need to do Java ME and C/C++ development, for pretty much all other scenarios, one of the other distributions is much better, i.e., smaller, faster. However, do make sure that you only continue with the next step if you have NetBeans IDE 8.0.2 installed. Note that there is a "2" in the previous sentence, i.e., it is not enough to have NetBeans IDE 8.0, nor to have NetBeans IDE 8.0.1. Instead, dowload and install NetBeans IDE 8.0.2.

  4. Get the Python Plugin for NetBeans IDE 8.0.2. Go here, click Download on the page, and then unzip the file that you have downloaded: http://plugins.netbeans.org/plugin/56795

  5. Go to the Plugin Manager in NetBeans IDE. In NetBeans IDE, go to Tools | Plugins. Click the "Downloaded" tab, which you see below. Click Add Plugins and browse to the folder where you unzipped the files in the previous step. Select them all. You now should see exactly this:

  6. Install the Python Plugin. Click Install. Click Next. Put a checkmark in "I accept the terms in all of the license agreements." Click Install. Click Continue. Click Finish. Click Close.

  7. Go to the New Project Dialog. Go to File | New Project or press Ctrl-Shift-N. You should now see this:

  8. Get Started Creating a Python Application. Click Next. If you have Python installed correctly on your system, you'll see the installations available (look in the "Python Platform" drop-down below), possibly after a moment while NetBeans searches for your installations:

  9. Step Through the Wizard. Pick the Python Platform of your choice, provide a name (e.g., "HelloPythonWorld") and a location to store the application, in the step above, and click Finish.

  10. Run the Python Application. The application opens, click the green Run arrow in the toolbar or right-click the application and choose Run. You now should see this:

Right now, the main missing feature is the set of well established smart editor features in NetBeans IDE, such as code completion, i.e., when you press Ctrl-Space, nothing happens. No error checking, i.e., no parsing is done, either. These are things being worked on right now. However, you can code and run and debug your Python applications, which is a lot more than nothing.

Feedback welcome, especially if you're planning to contribute code to this project.

Join the discussion

Comments ( 71 )
  • Mircea Wednesday, December 10, 2014

    Thanks for this article! Great work. I look forward to having error checking and code completion. Thank you.

  • girish kumar Wednesday, December 10, 2014

    thanks Geertjan it working now with netbeans 8.0.2 (i.e https://blogs.oracle.com/geertjan/entry/python_in_netbeans_ide_81)

  • knorke Wednesday, December 10, 2014

    Thanks a lot for your YT video and detailed description.

    Unfortunately this doesn't work for me. :(

    Screenshot: http://s28.postimg.org/grq7hjkfx/image.png

    NB started with "--modules --list" yields

    org.netbeans.lib.terminalemulator 1.31.2 Enabled

    What can I do?

  • Geertjan Wednesday, December 10, 2014

    Well, clearly you're on the Mac, so could be something different to what I see on Windows. Maybe you can try to exclude "Q-shell integration"?

  • knorke Wednesday, December 10, 2014

    Nope, I'm on Linux.

    I can install all 12 nbm-files without problems. Now Python in NB seems to work.

    Thanks a lot for your great work and for your help! :D

  • Geertjan Wednesday, December 10, 2014

    Nice to hear, thanks. Working on code completion right now.

  • guest Wednesday, December 10, 2014

    Hello to you all.

    I installed and tested the Python4NetBeans802 plugin for NetBeans IDE 8.0.2, and it works OK.

    The report I created during the testing of the plugin can be downloaded from GitHub, https://github.com/hristian-carabulea/Python4NetBeans802_Test . It is a Word document in the open .odt format.

    If you like to view the file, click on the link above. Then click on the document, then on "view the full file.", and finally download it.

    Thank you.



  • guest Wednesday, December 10, 2014

    Some plugins require plugin Terminal Emulator to be installed.

    The plugin Terminal Emulator is requested in implementation version 201411181905. The following plugin is affected:       Q-shell integration

  • Geertjan Wednesday, December 10, 2014

    Did you not read the comments above where exactly this problem was already dealt with?

  • Geertjan Wednesday, December 10, 2014

    I.e., you probably don't really need Q-shell integration, just exclude it, i.e., don't include it when installing the other modules.

  • guest Wednesday, December 10, 2014

    Thanks for responding about Q-shell integration, I could not tell from the posts above if they were speaking to the same root cause, missing dependency. Now onto Python and NetBeans.

  • Geertjan Wednesday, December 10, 2014

    Excellent news. Hope to provide more features soon.

  • Mahdi Thursday, December 11, 2014

    finally the end of plugins problems in netbeans 8, trust me every time netbeans coming with new version, I'm fear of updating.

  • guest Thursday, December 11, 2014

    I'd like to contribute. Where do I start? Any tutorials?

  • guest Friday, December 12, 2014

    Nice "Python in NetBeans IDE 8.0.2" update, Geertjan! Happy to see it.

    Best regards,

  • guest Friday, December 12, 2014

    Nice to hear that python is coming back.

    Actually I switched away from netbeans to eclipse

    because I do django/python development.

    (pycharm is also great).

    I will test it later ... when its more finished :-)

  • Martin Neumann Wednesday, December 17, 2014

    Hi Geertjan,

    I'm pretty excited about this.

    If there's anything I can do to help with this, please let me know.

    I'm not a NetBeans Platform expert by any means, though, but I'm willing to learn.

    I am a professional Java dev for more than 7 years, so I hope to learn what I need to support you quickly.

  • chris Tuesday, December 23, 2014

    good stuff Cheers! - Hassle free install in 8.0.2 on Windows 8.1 - nice!

  • guest Wednesday, December 24, 2014

    Thanks for the plugin! On ubuntu 12.04, including all products will say 'require plugin terminal emulator'.

    But uncheck 'Q-Shell Integration' from the list, will install the python plugin.

    All good.

  • Lou Dasaro Saturday, December 27, 2014

    Contributors! Join the NetBeans Python Project at https://netbeans.org/projects/python/pages/Home

    Thanks Geertjan, for "Let's get started with Python in NetBeans IDE 8.0.2"!

  • guest Sunday, December 28, 2014


    after installing netbeans 8.0.2 and the plugins (/plugin/56795) i can create python project but i don't have auto completion.

    in the Tools/options/Editor/Code Completion tab, python doesn't appear in the list of language.

    thanks for you help

  • Geertjan Sunday, December 28, 2014

    But that's precisely what you're told when you read this blog entry, isn't it? Just for you, here's the relevant paragraph again: "Right now, the main missing feature is the set of well established smart editor features in NetBeans IDE, such as code completion, i.e., when you press Ctrl-Space, nothing happens. No error checking, i.e., no parsing is done, either. These are things being worked on right now. However, you can code and run and debug your Python applications, which is a lot more than nothing."

  • Geertjan Sunday, December 28, 2014
  • guest Friday, January 2, 2015

    With full Python support in Netbeans, it will be the one IDE to rule them all!

  • Latrell Rollins Tuesday, January 13, 2015

    Thank you lots,

    I've been waiting for this day.

  • Alex Saturday, January 17, 2015

    Great work! Gracias!

  • guest Sunday, January 18, 2015

    Dear All,

    I followed all the steps correctly. Ho ever I found only 10 files from the plugin. No of Files should be 13 as mentioned in the post. So plz provide me the new link from where i will get all the files required for this plugin.


    Pavan Pandey

  • Geertjan Sunday, January 18, 2015

    You have all the ones you need. This post is not the latest on this topic -- https://blogs.oracle.com/geertjan/entry/youtube_code_completion_for_python

  • guest Friday, January 23, 2015

    I'm trying to use the debugger and it seems to work at first. I have a breakpoint inside a while loop, if I step over the code line by line until the while condition is reached and then press resume execution button everything will continue to work fine, meaning the variable window will be refreshed automatically and next time I hit the breakpoint everything works as expected. If,however, I continue stepping through the code and exit the loop or stop the debugging session with the stop button,the next time I hit the breakpoint the variable window no longer refreshes itself, it still works but I have to change tabs and back again to update it. The only way it seems to get it working again is to restart NetBeans.

    For what it's worth.

  • Lou Dasaro Friday, January 23, 2015

    Thank you for your report, which I have entered into NetBeans bug tracking system as Bug 249987. If you want to be informed regarding changes to this bug, visit NetBeans Bugzilla for Bug 249987 and add yourself to the cc: list. See (remove spaces) https: // netbeans.org/bugzilla/show_bug.cgi?id=249987


    Lou Dasaro

    Leader, Python Project.

  • guest Saturday, January 24, 2015

    Dear Geertjan,

    Good Afternoon,

    Thank you very much for your response. I tried the new link provided by you, But still getting the same error while launching new Python application.

    First I Get : Detecting Platform

    After 2 to 3 seconds : <Valid Platform Has to Be Selected>

    At Bottom of the screen getting message in red color: Wrong Python Platform

    Kindly help me thanks.

  • Lou Dasaro Monday, January 26, 2015

    Regarding the "Wrong Python Platform" error, this anomaly has been seen on Macs occasionally, where multiple identical versions of Python reside in different paths. See https://netbeans.org/bugzilla/show_bug.cgi?id=189704

  • Wieger Wesselink Monday, February 9, 2015

    Really great news that python support is back in Netbeans! It works fine under Linux Mint Qiana.



  • ed209 Monday, February 9, 2015

    Note the hello world file fails in Python 3 out of the box with this tutorial. The line should be:

    print ("Hello World")

    This is because print is now a function in 3.x. Please fix in the next release.

    Source: https://docs.python.org/3.0/whatsnew/3.0.html#print-is-a-function

  • joe.light Wednesday, February 11, 2015

    Ahhh, great post, if one checks to install Python itself first XD

    Cheers M8

  • Mark Sunday, February 15, 2015

    Geweldige post! Heb veel python IDE's geprobeerd maar ik blijf toch graag bij mijn favoriete IDE!

  • guest Sunday, March 1, 2015

    Dear Geertjan,

    I installed netbeans 8.02 and python plugin according to your tutorial.

    But during installation on step 5 there had been 10 files instead of 13 . Thereafter when i tried to run Hello program the message : Missing parentheses in call to 'print' has being appeared..

  • Geertjan Sunday, March 1, 2015

    Indeed, yes, the plugin keeps changing, and right now has 10 modules. And, yes, you need to learn Python before you can use it in NetBeans.

  • julius Tuesday, March 3, 2015

    Geertjan, I added the plugins and everything works fine, but when creating a new project I only have support for Python 2.7.5 but not for 3.x.

    You removed support for version 3.x?

  • Geertjan Tuesday, March 3, 2015

    Join the forum and ask questions there: forums.nbpython.org

  • Artur Barseghyan Friday, March 13, 2015

    Thank you!

  • guest Friday, March 20, 2015

    hi, how can i add a mysqli module to python in netbeans

  • guest Monday, March 30, 2015

    hi,I tried to use debug tool but this message has been appeared

    ( I have Python 3.4.1 | Anaconda 2.1.0 )

    >>>[LOG]PythonDebugger : overall Starting

    [LOG]PythonDebugger.taskStarted : I am Starting a new Debugging Session ...

    [LOG]This window is an interactive debugging context aware Python Shell

    [LOG]where you can enter python console commands while debugging

    File "...\AppData\Roaming\NetBeans\8.0.2\config\nbPython\debug\nbpythondebug\jpydaemon.py", line 219

    print self.debuggerFName

    Debug session Abort =1


    SyntaxError: invalid syntax


  • guest Tuesday, May 12, 2015

    thank you

  • guest Tuesday, June 23, 2015

    where can download Common Scripting Language API(python)?

    in packet I can't find it

  • Miguel Wednesday, July 1, 2015

    Dear Geertjan,

    Great job, congrats!!! Netbeans improves a lot adding Python, as other languages.

    I use Netbeans on a USB drive to program Java, so I have on the USB drive the directory \netbeans with Netbeans program files and another one with the JDK. I also modified the file netbeans.conf and I can run Netbeans and program on Java SE on computers without JDK installed.

    I also have added Phyton plugins, but I have to use the USB drive in a computer with Phyton installed.

    How can I work with Netbeans and Phyton on my USB drive on computers without Phyton installed?

    Thanks a lot


  • guest Friday, July 3, 2015


    I downloaded from: http://plugins.netbeans.org/plugin/56795

    I've only got 10 modules in the zip file not the 13 you show in your example...

    Where am I going wrong...?

  • Geertjan Friday, July 3, 2015

    Could things be undergoing change all the time? Could this blog entry be out of date? Is this blog entry cast in stone? The question is, does the plugin work?

  • guest Monday, July 6, 2015

    Syntax for print statement incorrect. Needed to add parenthesis:

    print ("Hello World")

  • guest Monday, July 6, 2015

    Syntax for print statement incorrect. Needed to add parenthesis:

    print ("Hello World")

  • guest Saturday, July 11, 2015

    Hi Geertjan, I added this and it is working great. Now how do I include these nbms in my NetBeans RCP application so I can pass this functionality on to the users of my app? Or since I have already added them to NetBeans is there a way to have my app include these or anything other pluggins or nbms that I may have downloaded? The app I am currently working on does not use the update center available.

  • Anind Monday, July 27, 2015

    Thanks a lot. It made things a lot easier for me.

  • guest Monday, August 10, 2015


    i develop a large java standalone client, and would like to make it possible for myself and my users to write and execute jython scripts from within the application. I use PythonInterpreter and develop the application in netbeans 8.0.2. Everything is working perfektly except i would like to debug into the jython-code. What to do?

  • guest Tuesday, August 11, 2015

    to clarify: the application is a maven project which is written in Java, and i would like to debug both the java-code and the jythoncode with netbeans

  • guest Sunday, October 4, 2015

    Problem: In step 2 of New Python Project I got the "Wrong Python Platform" error message. No Python platforms are available for me to select. I tried Manage->Autodetect but it did not find any platforms.


    Installation appeared to match the video. I installed all 10 files from the zip file one of which was: org-netbeans-modules-python-platform.nbm.

    I tried installing and rebooting on two computers, one with Windows 7 and one with Windows 8. Everything should be up to date.

    Product Version: NetBeans IDE 8.0.2 (Build 201411181905)

    Updates: NetBeans IDE is updated to version NetBeans 8.0.2 Patch 2

    Java: 1.7.0_71; Java HotSpot(TM) Client VM 24.71-b01

    Runtime: Java(TM) SE Runtime Environment 1.7.0_71-b14

    System: Windows 7 version 6.1 running on x86; Cp1252; en_US (nb)

  • Geertjan Sunday, October 4, 2015

    Go here: nbpython.org

  • guest Sunday, November 1, 2015

    Your zip plugin is missing 'common scripting language api' and 'common language scripting platform' support files so when I try to create a new python project I can't because I have no available python platforms to choose from. Please add them back to the zip. Thanks

  • guest Monday, November 2, 2015


    Does the show the class of methods?

    how ?

  • guest Tuesday, November 3, 2015

    I just downloaded this with netbeans 8.0.2 and the only python platform available is 2.7. Is there a way to use python 3x? Thanks for any help.

  • Geertjan Tuesday, November 3, 2015

    Go here: nbpython.org

  • Jozef Thursday, November 19, 2015


    can I install this plugin in NB 8.1?

    Thanks for your answers.

    Best regards,


  • Geertjan Thursday, November 19, 2015

    Go here: nbpython.org

  • guest Tuesday, January 12, 2016

    I installed and started to edit, but could not find a way to force spaces instead of tabs, which is our team standard.

  • lzh Friday, January 15, 2016

    Hi, is there a way add the current project source folder to the pythonpath so the interactive console can run the python file in the project directory? I add the project source folder in the project properties and the interactive console still can't find the file in the project source folder.

  • guest Wednesday, February 17, 2016


    as per instructions given above i installed plugins in netbeans.But when i try to run python program i am getting an error and also setup window is open..when i try to close setup window it says session is aborted.. can you explain why it is happening..

    i am using windows 10 and i downloaded python 3.5.1

  • guest Wednesday, May 18, 2016


    I have installed NetBeans 8.0.2 and the downloaded and installed the Python plugins. However i got 10 plugins from the Python4NetBeans802 prescribed instead of 13 as is the case in this blog.

    I am now getting the error 'Wrong Python Platform' whenever i try to open a new project. I am on Windows 7 PC. Please help resolve this problem.

  • Biuk Tilahun Saturday, June 25, 2016

    Thanks very much

  • Thiago Costa Tuesday, July 26, 2016

    Same problem here: the "Wrong Python Platform" error. I downloaded and installed the files in my netbeans just as the video shows, but there is only 10 files instead of 13.

    How can I get this 3 missing files?

  • Caballero Wednesday, December 14, 2016

    Wrong Python Platform.... in a new Python project

  • guest Sunday, April 2, 2017

    For Wrong Python Platform,

    1. Download and install the desired Python Version

    2. Go to tools

    3. Go to Python Platform

    4. Click on New

    5. Go to your local disk (what ever disk you window is installed on)

    6. Go to Windows

    7. Look for a file call py and click on it

    8. Click on Make default

  • ester Monday, August 28, 2017
    Hello I have a problem with the step 9. The netbeans says that that i have wrong Python platform. does someone know where is the problem? Im thankful for any possible help :/
Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.