Coder Social home page Coder Social logo

codeblocks-python's Introduction

Codeblocks-Python

A variety of plugins for the Code::Blocks IDE that will be useful for python programmers. Plugins include:

  • Code completion
  • Visual debugger
  • Python interpreter console

All plugins assume that python is installed and in the system path.

Code Completion

  • Uses the jedi completion lib (must be installed)
  • Provides completion tips for any open python source file
  • TODO: Symbol browser pane, showing docstrings alongside completion hints,

screenshots/codecompletion1.png

Visual Debugger

  • Uses pdb (installed by default in any python)
  • TODO: add support for rpdb2

To use it, make the python debugger the active debugger from the debugger menu

screenshots/debugger1.png

Then open a source file and press Debug/Continue (from the Debugger toolbar or the Debugger menu).

screenshots/debugger2.png

Python Interpreter Console

  • Run multiple python interpreters sessions inside a dockable pane in Code::Blocks
  • Features syntax highlighting and automatic indentation in the code input control
  • TODO: Handling stdin (e.g. raw_input), code completion hints, syntax error hints, extracting code/output from the I/O control, numbering instructions and output(?)

Usage

Show the interpreters panel using the View menu:

screenshots/interpreters1.png

Each interpreter has 2 panes, one for editing and submitting blocks of code, the other for displaying the history of submitted statements and any output

screenshots/interpreters2.png

When the code control has the keyboard focus, press

  • 'Enter' with the keyboard positioned at the end of your block of code to submit it to the interpreter
  • 'Ctrl-Up' and 'Ctrl-Down' to browse through the history of previously submitted statements.

Ready Built Binaries

Coming soon ...

Building from Source

There are two Code::Blocks projects for each of the plugins (one for Windows and one for Linux) and the XmlRpcEmbedder library that is used to control remote python processes from Code::Blocks. There is also a workspace file for Windows and Linux containing all of the projects.

Use the "All" target to compile against Code::Blocks that you have built yourself. Read more about building Code::Blocks at the Code::Blocks Wiki

Use the "cbplugin" target to be able to install into a pre-built Code::Blocks (you must compile against the headers that were used to create that version of Code::Blocks and link against the pre-built Code::Blocks library files)

For the cbplugin targets, the plugins that use it should be statically linked against the XmlRpcEmbedder lib if you want to be able to install the plugins as cbplugin packages.

Get Help

Use the issues to report problems or get support at the Code::Blocks Forums

codeblocks-python's People

Contributors

spillz avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.