Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sheets not refreshing #11

Open
j3r3miah opened this issue Oct 29, 2018 · 4 comments
Open

Sheets not refreshing #11

j3r3miah opened this issue Oct 29, 2018 · 4 comments

Comments

@j3r3miah
Copy link

Your bubble sort demo works for me, but in my first several attempts to investigate some of my own code the variables didn't update in the Sheet as expected.

I have this code:

import random

S = [random.randint(0, 10) for _ in range(10)]

rv = [[]]
for o in S:
    addtl = []
    for r in rv:
        addtl.append(r + [o])
    rv.extend(addtl)

In which I'm trying to monitor addtl and rv in a Sheet; however, they never update past their initial values.

Here's a screenshare to demonstrate: https://www.youtube.com/watch?v=-4Tmee4Qqzk

@j3r3miah j3r3miah changed the title Sheets not refreshing? Sheets not refreshing Oct 29, 2018
@bradrn
Copy link

bradrn commented Oct 29, 2018

I've noticed this too; the issue seems to be that any class method doesn't work. Here's some that don't work, given a list X:

X.pop(0)
X.append([1,2,3])
m = X.max()

Whereas these do work:

X[0] = 0
X = X + [1,2,3]
m = X[0]

EDIT: No wonder X.max() didn't work - .max() isn't even valid! The correct syntax is max(X), which does indeed work. The other two class methods still don't work though.

@ChrisKnott
Copy link
Owner

@bradrn thanks for looking into this, I will try and fix it this weekend.

I am not particularly keen on bug fixes in this codebase because it's basically a prototype and fundamentally hacky, but I'm sure this used to work...

@bradrn
Copy link

bradrn commented Oct 31, 2018

[…] it's basically a prototype […]

I know I'm getting a bit off-topic here, but I'm just wondering: if this application is a prototype only, then what do you have planned for the finished application?

@ChrisKnott
Copy link
Owner

In implementation terms it will be a fork of CPython, with probably a Qt frontend. This will be more performant and more stable/robust.

Design wise, I am not 100% sure at the moment, people are suggesting several good ideas which I will try and include.

The main features that are missing at the moment are the ability to query things like the stack trace and memory usage. These need to be exposed to metacode to allow for the creation of useful visualisations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants