datalayer / jupyter-ui

⚛️ React.js components 💯% compatible with 🪐 Jupyter - Storybook on https://jupyter-ui-storybook.datalayer.tech
https://jupyter-ui.datalayer.tech
Other
325 stars 46 forks source link

Make JupyterContext optional #233

Closed echarles closed 4 months ago

echarles commented 4 months ago

Ensure the following code works fine, make the enclosing optional.

root.render(
  <>
    <JupyterLabCss colorMode='dark' />
    <Notebook
      path="ipywidgets.ipynb"
      uid={NOTEBOOK_UID}
      height="calc(100vh - 2.6rem)" // (Height - Toolbar Height).
      cellSidebarMargin={60}
      CellSidebar={CellSidebar}
      Toolbar={NotebookToolbar}
    />
  </>
);

Screenshot from 2024-05-28 13-28-10

echarles commented 4 months ago

Fixed with https://github.com/datalayer/jupyter-ui/pull/232