Issue
I am creating a custom widget (ipywidget) and I need to get the width of the output cell of Jupyter notebook at runtime. So that I can occupy maximum width with my widget.
Solution
We can get the width of output cell (in px) using this.el.getBoundingClientRect()
, which returns the following object:
Answered By - Anant_Kumar
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.