Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@mrocklin
Copy link
Member

@mrocklin mrocklin commented Nov 6, 2016

  • Fix size of memory plot
  • Add height of task stream plot (maybe not a good idea)

*  Fix size of memory plot
*  Add height of task stream plot (maybe not a good idea)
@mrocklin
Copy link
Member Author

mrocklin commented Nov 7, 2016

cc @canavandl can you give this four-line PR a quick glance to check if anything seems off to you?


mem_plot.add_layout(LinearAxis(), 'left')
mem_plot.add_layout(LinearAxis(), 'below')
mem_plot.yaxis.visible = False
Copy link
Contributor

@canavandl canavandl Nov 7, 2016

Choose a reason for hiding this comment

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

remove L403 instead (so that axis isn't added)

@canavandl
Copy link
Contributor

What's the intent of settings the plot_height in the element constructor instead of passing it in as a kwarg? I think doing so might impact the responsive resizing for JLab

@mrocklin
Copy link
Member Author

mrocklin commented Nov 7, 2016

Currently in the workers/ pane the mem_plot plot is very large. We want it to take up only a small sliver of space.

Similarly we're getting strange effects when the user presses "reset" on the task stream plot in the status/ page. The plot increases in vertical size.

@canavandl
Copy link
Contributor

I think you should be able to constrain the mem_plot size by passing plot_height=300 here: https://github.com/dask/distributed/blob/master/distributed/bokeh/workers/main.py#L21

I'll look into the task stream plot.

@canavandl
Copy link
Contributor

canavandl commented Nov 7, 2016

It appears that ResetTool accepts a reset_size kwarg bool. While you described behavior sounds like a Bokeh bug, it may be resolved by adding reset_size=False to the ResetTool constructor in: https://github.com/dask/distributed/blob/master/distributed/bokeh/components.py#L91

(and maybe here for good measure? https://github.com/dask/distributed/blob/master/distributed/bokeh/components.py#L317) I'll reproduce and open a Bokeh issue

*  move plot_height kwarg from components to workers/main.py
*  remove y axis from memory plot
*  Add reset_size=False to ResetTool
@mrocklin
Copy link
Member Author

mrocklin commented Nov 7, 2016

Changes applied. Lookin' sharp.

title=Title(text="Task Stream"), id='bk-task-stream-plot',
x_range=x_range, y_range=y_range, toolbar_location="above",
min_border_right=35, **kwargs
min_border_right=35, plot_height=300, **kwargs
Copy link
Contributor

Choose a reason for hiding this comment

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

also pass as kwarg here?

Copy link
Member Author

Choose a reason for hiding this comment

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

I've removed it entirely. This was only here as a hack to avoid the reset issue

@canavandl
Copy link
Contributor

LGTM

@mrocklin mrocklin merged commit 065e613 into dask:master Nov 7, 2016
@mrocklin mrocklin deleted the bokeh-plots-update branch November 7, 2016 21:31
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