DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Please enter at least three characters to search
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Zones

Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

Modernize your data layer. Learn how to design cloud-native database architectures to meet the evolving demands of AI and GenAI workkloads.

Secure your stack and shape the future! Help dev teams across the globe navigate their software supply chain security challenges.

Releasing software shouldn't be stressful or risky. Learn how to leverage progressive delivery techniques to ensure safer deployments.

Avoid machine learning mistakes and boost model performance! Discover key ML patterns, anti-patterns, data strategies, and more.

Related

  • Instant APIs With Copilot and API Logic Server
  • Upgrading a Database Project to Python 3.12
  • PyCharm Fix for Certificate Verify Failed: Unable To Get Local Issuer Certificate
  • My Experiences with Maven in IntelliJ IDEA and NetBeans IDE

Trending

  • Securing Parquet Files: Vulnerabilities, Mitigations, and Validation
  • A Complete Guide to Modern AI Developer Tools
  • The Role of Artificial Intelligence in Climate Change Mitigation
  • CRDTs Explained: How Conflict-Free Replicated Data Types Work
  1. DZone
  2. Software Design and Architecture
  3. Integration
  4. Python Development in NetBeans IDE

Python Development in NetBeans IDE

By 
Amit Saha user avatar
Amit Saha
·
Jun. 22, 08 · Interview
Likes (0)
Comment
Save
Tweet
Share
32.8K Views

Join the DZone community and get the full member experience.

Join For Free
The nbPython project aims to provide support for Python development to NetBeans IDE. Below follow the step-by-step instructions for getting started!

 

 

 

The bits are available (milestone releases) for download now as NetBeans modules (nbms).

Let us get started:

  1. Download/lnstall the M3 NBMs from here.

  2. Fire up NetBeans IDE.

  3. Go to Tools -> Plugins -> Downloaded Tab.

  4. Click on "Add Plugins" and select all the NBM files in the unzipped directory.

  5. Now, you will see all the chosen modules along with their descriptions. You should see something like this:


  6. Press the "Install" button.

  7. Using NetBeans IDE 6.1, I get a dependency error:



  8. Then, I downloaded a latest build NetBeans IDE Build 200806220002 from here and repeated the above steps. This time there was no dependency problem.

  9. You will get a "Validation Warning". Press "Continue":

  10. The installation will continue and will be over without any further user interaction required.

 

Creating a New Python Project

  1. Go to File-> New Project-> Python-> Python Project. Choose a Project Name- say "HelloNbPython". Click on Finish.


  2. A new project gets created and is visible in the Project Explorer window. No default file is created.

  3. Right Click on the project name, and select New-> Empty Python File. Enter a name, say- HelloWorld.


  4. A Python script will be generated for you which will simply print "Hello World".

The project tree is now as follows:

  • HelloNbPython/
    • pyproject/
      • project.properties
    • src/
      • HelloWorld.py

 

Runing a Python Script

  1. Right Click on HelloWorld.py in the project explorer and click "Run Python Script".

  2. First time I did this, I got the following exception message:

    java.io.IOException: Cannot run program "/home/amit/netbeans-dev-200806220002/nbpython/jython-2.5/bin/jython" (in directory "/home/amit/NetBeansProjects/HelloNbPython"): java.io.IOException: error=13, Permission denied

  3. So I checked the file permission of the 'jython' executable:
    • $ ls -l jython
      -rw-r--r-- 1 amit amit 5101 2008-06-22 15:05 jython
    • As you can see there is no executable permission for 'jython' as indicated by the absence of the 'x' flag
    • So, I made the 'jython' executable by: chmod +x jython

  4. Run the script again and you should get "Hello World" in the output window.

 

 

 

Integrated development environment Python (language) NetBeans

Opinions expressed by DZone contributors are their own.

Related

  • Instant APIs With Copilot and API Logic Server
  • Upgrading a Database Project to Python 3.12
  • PyCharm Fix for Certificate Verify Failed: Unable To Get Local Issuer Certificate
  • My Experiences with Maven in IntelliJ IDEA and NetBeans IDE

Partner Resources

×

Comments
Oops! Something Went Wrong

The likes didn't load as expected. Please refresh the page and try again.

ABOUT US

  • About DZone
  • Support and feedback
  • Community research
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 100
  • Nashville, TN 37211
  • support@dzone.com

Let's be friends:

Likes
There are no likes...yet! 👀
Be the first to like this post!
It looks like you're not logged in.
Sign in to see who liked this post!