Comments (7)
Thx for very useful video. A "default kernel" is always started on page refresh, but the kernel to which the notebook connects is managed by the notebook context, so you should be connected to the same kernel, whatever it is, on page refresh (you can check that your variables are still there).
Anyway, this is suboptimal, so I am refactoring all that to solve this and hopefully other issues you reported.
Stay tuned!
from jupyter-ui.
Hi @echarles, it appears that the issue has been resolved. I tested it and now it's only starting one kernel, and keeping the same after page reloads. Thank you for your assistance with this! I will close the issue.
from jupyter-ui.
I am trying on my env with main branch, and the kernel is kept after page reload (both with a path defined, or with a nbformat given in the props). Which version are you using?
from jupyter-ui.
Hey @echarles, I'm using the latest release of Jupyter UI (version 0.6.5). Initially, I thought it might be related to my Redux setup, so I removed all the Redux configuration, but the problem still persists. As a result, my Jupyter server is getting overwhelmed with numerous unused kernels. Do you have any ideas or suggestions on how I can address this issue?
from jupyter-ui.
I created a new application from scratch to verify if the issue was with my setup. However, I encountered the same behavior. It's worth considering that I may be overlooking something or have a misunderstanding of the kernel's definition. Nonetheless, this is the method I use to determine if the kernel is created or reused. Thanks in advance!
"use client";
import { Jupyter, Notebook } from '@datalayer/jupyter-react'
export default function Home() {
const NOTEBOOK_UID = 'notebook-uid'
return (
<main className="w-full h-screen">
<Jupyter
jupyterServerHttpUrl=""
jupyterServerWsUrl=""
jupyterToken=""
>
<Notebook
path="/Untitled.ipynb"
height='calc(100vh - 2.6rem)'
cellSidebarMargin={120}
uid={NOTEBOOK_UID}
/>
</Jupyter>
</main>
)
}
Video url: https://share.cleanshot.com/VRq7Dndp
from jupyter-ui.
Good to know! Currently, I'm unmounting the kernel whenever the user reloads or closes the page to prevent overwhelming the server with multiple kernels. However, this approach does result in the deletion of the variables you mentioned.
from jupyter-ui.
I have released 0.7.0 which fixes this. Can you try on your env and close this if it work for you? Thx again!
from jupyter-ui.
Related Issues (20)
- Storybook Pyodide is failing via CDN while succeeding via S3 Bucket HOT 3
- Firefox does not resize the Storybook view for the Cell
- Support Xeus Python Lite kernels and Emscripten Forge environments with `lite` option HOT 2
- Add a initCode props to the components
- Upgrade to JupyterLab 4.1.0b0 HOT 1
- Global CSS cannot be imported from node_modules HOT 3
- Restore IPyWidgets state if available HOT 1
- Package and export the Webpack configuration
- Upgrading to `@jupyterlite/server(-extension)` 0.2.3 breaks jupyter ui lite
- Jupyter Hub support HOT 6
- Preinstalling Libraries when using a notebook component rather than JupyterLabs component HOT 1
- Right click on the JupyterLabApp component makes the layout to shift up and open bottom panel HOT 4
- Bug on saving a file HOT 1
- Creating Custom Toolbar | Sidebar HOT 2
- Issue with Vite Example HOT 6
- Markdown collapsing instead of rendering. HOT 1
- Cell height is off by as much as 30+x HOT 3
- Typescript Version Issue HOT 1
- Issue with nextjsExample HOT 1
- Create the Jupyter session or server on-demand HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jupyter-ui.