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

Fix a couple of demos #676

Merged
merged 2 commits into from
Apr 16, 2021
Merged

Fix a couple of demos #676

merged 2 commits into from
Apr 16, 2021

Conversation

rahulporuri
Copy link
Contributor

  • multi_line_plot.py
  • multi_line_plot_demo.py
  • javascript_hover_tools.py

The first two were failing earlier because of a bad listener hookup. The latter was failing because of the use of non-existent methods.

Poruri Sai Rahul added 2 commits April 16, 2021 16:06
previously we were listening to the non-existent "data" trait which
should have been "value._data".

Once this change is made, the multi_line_plot.py and
multi_line_plot_demo.py demos work as expected and without this change,
they both crash with a traits observe error

	modified:   chaco/multi_line_plot.py
this fixes the javascript hover tools advanced example

	modified:   examples/demo/advanced/javascript_hover_tools.py
Copy link
Contributor

@aaronayres35 aaronayres35 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
All the demos launch without errors and work as expected now.
I ran the javascript_hover_tools.py and my browser did not immediately launch, but I was able to open the html file manually and things seemed to be working

@rahulporuri
Copy link
Contributor Author

... and my browser did not immediately launch, but I was able to open the html file manually and things seemed to be working

Hmm. Weird. The browser opened up for me as soon the script finished running.

@rahulporuri rahulporuri merged commit 613fc46 into master Apr 16, 2021
@rahulporuri rahulporuri deleted the fix/demos branch April 16, 2021 12:30
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

Successfully merging this pull request may close these issues.

2 participants