-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example works but tons of errors in console #5
Comments
@c0mm4nd Yes, that behavior is similar to what is described in #4 JupyterLab and JupyterLite strongly rely on webpack. There should be a way to avoid those error messages. I have tried but not yet found a solution. The issue is at the instersection of next.js and webpack.js Still the notebook is running fine. The production build works fine also for me. |
btw after |
I just tried the The Notebook seems crashed. error:
There is a 404 error in the Network panel, requesting The source code of the notebook component (no any other change): 'use client'
import { Jupyter, Notebook, CellSidebar } from '@datalayer/jupyter-react';
export const NotebookComponent = () => {
return (
<>
<div style={{fontSize: 20}}>Jupyter Notebook in Next.js</div>
<Jupyter
lite={true}
>
<Notebook
ipywidgets={'classic'}
nbformat={{
cells: [
{
cell_type: 'code',
outputs: [],
source: 'print("Hello, World!")',
}
],
metadata: {
kernelspec: {
display_name: 'Python 3 (ipykernel)',
language: 'python',
name: 'python3',
},
},
nbformat: 4,
nbformat_minor: 5,
}}
/>
</Jupyter>
</>
)
}
export default NotebookComponent; |
same to what I said in datalayer/jupyter-ui#252
UI and notebook are working fine in the browser.
The text was updated successfully, but these errors were encountered: