twosigma / beakerx

Beaker Extensions for Jupyter Notebook
http://BeakerX.com
Apache License 2.0
2.79k stars 381 forks source link

d3 tutorial window size is fixed #4857

Open scottdraves opened 7 years ago

scottdraves commented 7 years ago

in d3.bkr

var width = 600,
    height = 500;

should resize, perhaps fit into the cell output div. and eventually a resize handle on the corner of the cell.

scottdraves commented 7 years ago

related https://github.com/twosigma/beaker-notebook/issues/4603

scottdraves commented 7 years ago

i guess what this comes down to is a new API:

beaker.displayD3(this)

that is like beaker.displayHTML(this, '') but puts in the resize thumb and syncs the window with D3.

scottdraves commented 7 years ago

needs a more detailed design for the "syncs the window with D3" part.