Skip to content
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

Encountering Uncaught Runtime errors in Jupyter-React App #268

Open
Prahmodh-Raj1 opened this issue Jul 19, 2024 · 0 comments
Open

Encountering Uncaught Runtime errors in Jupyter-React App #268

Prahmodh-Raj1 opened this issue Jul 19, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Prahmodh-Raj1
Copy link

Description

I'm encountering these runtime errors everytime I render the React Application with Jupyter-React Components in them.
image

Here's the code for the React Application:

import { useState, useEffect } from 'react';
import { Jupyter, Notebook, FileManagerJupyterLab, Terminal, CellSidebarRun } from '@datalayer/jupyter-react';
import { Box } from '@primer/react';
import { NotebookToolbar } from '@datalayer/jupyter-react/lib/examples/toolbars/NotebookToolbar';

const App = () => {
  

  return (
    <Box className="container">
      <Box className="sidebar">
        <Jupyter
          jupyterServerHttpUrl="http://127.0.0.1:8888"
          jupyterToken="0b7bed1aed958c86c6ead240863a30b0d1bdf89bb8ee1f07"
          startDefaultKernel={true}
          terminals={true}
        >
          <FileManagerJupyterLab />
        </Jupyter>
      </Box>
      <Box className="main">
        <Box className="content">
          <Jupyter
            jupyterServerHttpUrl="http://127.0.0.1:8888"
            jupyterToken="c4eaf548709053946f36a9355ebc77daa14ca8a133380134"
            startDefaultKernel={true}
            terminals={true}
          >
            <Notebook path={notebookPath} Toolbar={NotebookToolbar} CellSidebar={CellSidebarRun} />
            {isTerminalOpen && (
              <Box>
                <Terminal colorMode='light' height='300px' />
              </Box>
            )}
          </Jupyter>
        </Box>
      </Box>
    </Box>
  );
};

export default App;

Kindly let me know how these errors could be resolved. cc@echarles

@Prahmodh-Raj1 Prahmodh-Raj1 added the bug Something isn't working label Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant