Do Notebooks have a default width variable? Does it set automatically?

Or am I missing the width somewhere in this notebook?

If it sets automatically, what is the ratio?
Many thanks!

The width variable is available in all notebooks as part of the Observable stdlib, and is a reactive variable updates when the page resizes: GitHub - observablehq/stdlib: The Observable standard library.

2 Likes

Be aware that being reactive means that changing the width of the browser window will invalidate (rerun) all cells that rely on width.

If you find that to be a problem, have a look at Efficient Responsiveness / Fabian Iwand / Observable

1 Like