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

groovy magic breaks on plot actions #7112

Closed
scottdraves opened this issue Apr 2, 2018 · 0 comments
Closed

groovy magic breaks on plot actions #7112

scottdraves opened this issue Apr 2, 2018 · 0 comments
Assignees

Comments

@scottdraves
Copy link
Contributor

run this cell in a py3 notebook:

%%groovy
def random = new Random()
def p = new Plot(showLegend: true, useToolTip: false);
p << new Line(x: [1, 2, 3], y: [2, 3, 4], width: 10, displayName: "line 1")
         .onClick({info -> info.graphics.displayName = "new name"})

p << new Line(x: [1, 2, 3], y: [5, 6, 7,], width: 10, displayName: "line 2")
         .onClick({info -> info.graphics.y[1] = random.nextInt(10)})

groovy starts & the plot appears. good.

click on a line.

expected: the line moves. current: nothing on screen, but on the terminal it says:

[IPKernelApp] WARNING | No such comm: e58b2c6e-80d2-495d-9f25-c051f832de5e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants