Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8505743
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T02:24:24+00:00 2026-06-11T02:24:24+00:00

I’ve written a Eclipse plug-in for live coding in Python that adds a display

  • 0

I’ve written a Eclipse plug-in for live coding in Python that adds a display column to the PyDev editor. In that column, it shows how variable values change as the code runs, including multiple columns for loops or repeated function calls. The display is updated as you edit the code.

My question is this: how can I cleanly extend the PyDev editor to add this extra column that will scroll vertically with the source code, and scroll horizontally to show many columns in a long-running loop? My vision is to create something like the window you get when you compare two text files, but still let the user edit the Python code and use the PyDev editor’s syntax highlighting. For now, I’m only displaying text, but I’d also like to be able to display graphics in this column.

My current hack to get the first release working is to subclass the line number ruler and replace the line numbers with my own text. That’s really ugly, particularly the way I implemented horizontal scrolling.

If anyone on the PyDev team is interested in merging the feature or exposing some extension points to make it work better, I’m happy to do the grunt work and make a pull request. I do need some guidance, though.

The idea came from Bret Victor’s talk, Inventing on Principle, particularly the section at 17:30-21:30. If you want to see what I’ve implemented so far, I posted a demo video, as well as a walk-through.

Here’s an example display for a binary search algorithm. (The display is on the left, the code is on the right.)

                        # echo on                               
                        # echo width 40
n = 4 a = [1, 2, 4]     def search(n, a):
low = 0                     low = 0
high = 2                    high = len(a) - 1
        |                   while low <= high:
mid = 1 | mid = 2               mid = (low + high) / 2
v = 2   | v = 4                 v = a[mid]
        |                       if n == v:
        | return 2                  return mid
        |                       if n < v:
        |                           high = mid - 1
        |                       else:
low = 2 |                           low = mid + 1
                            return -1

i = 2                   i = search(4, [1, 2, 4])
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T02:24:26+00:00Added an answer on June 11, 2026 at 2:24 am

    After some helpful hints from Ingo and Fabio on the PyDev team, I’ve made some progress. The main hint was to create an extension for org.python.pydev.pydev_pyedit_listener and register for the onCreatePartControl event, then wrap another composite around the regular PyEdit control. The SWT widgets reference was helpful for learning how to build the extended interface.

    Another challenge was synchronizing the two scroll bars. It seems like you have to register for the onCreateSourceViewer event, and then register a view port listener.

    I posted a sample project on github to demonstrate the technique.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I am trying to understand how to use SyndicationItem to display feed which is
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I've got a string that has curly quotes in it. I'd like to replace
I have a French site that I want to parse, but am running into
In my XML file chapters tag has more chapter tag.i need to display chapters
I am doing a simple coin flipping experiment for class that involves flipping a
I know there's a lot of other questions out there that deal with this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.