Skip to content

Fix a couple of demos#676

Merged
rahulporuri merged 2 commits into
masterfrom
fix/demos
Apr 16, 2021
Merged

Fix a couple of demos#676
rahulporuri merged 2 commits into
masterfrom
fix/demos

Conversation

@rahulporuri
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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