jupyter-ui icon indicating copy to clipboard operation
jupyter-ui copied to clipboard

[file storage]

Open zhenxxxx opened this issue 1 year ago • 5 comments

Problem

Hi all, just wondering if it is possible to split the storage and use another server instead of the jupyter server as a storage service? Thus, it can use the storage server to fetch the notebook and send the code to the jupyter server for execution.

Proposed Solution

Additional context

zhenxxxx avatar Sep 08 '23 08:09 zhenxxxx

Yes, that is possible. You can pull the notebook content from any storage and give it as a nbformat prop to the Notebook component.

I have added an example to showcase that https://github.com/datalayer/jupyter-ui/blob/main/packages/react/src/examples/NotebookExternalContent.tsx

echarles avatar Sep 09 '23 07:09 echarles

The example also shows how to persist the user changes in a react local state that you can reuse to persist those changes on demand to your external storage.

echarles avatar Sep 09 '23 07:09 echarles

Thank you very much, I will try this example.

zhenxxxx avatar Sep 12 '23 02:09 zhenxxxx

Specify the nbformat property, and after kernel creation, create a ping.ipynb file in the working directory of the JupyterLab service.How to set not to create the default ping.ipynb file?

chenjpu avatar Jan 03 '24 08:01 chenjpu

Specify the nbformat property, and after kernel creation, create a ping.ipynb file in the working directory of the JupyterLab service.How to set not to create the default ping.ipynb file?

@chenjpu jupyter-react 0.8.3 fixes this issue. You can try it. If you define a nbformat` props on the Notebook component, it should no more query the server to save/read the default ping.ipynb.

echarles avatar Jan 03 '24 09:01 echarles