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

Support for a Functional File Browser Component #267

Open
ImperatorRaj opened this issue Jul 17, 2024 · 0 comments
Open

Support for a Functional File Browser Component #267

ImperatorRaj opened this issue Jul 17, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@ImperatorRaj
Copy link

Description

I want to have a file browser that opens a file when clicked on it, but I'm currently unable to do so with the Existing FileBrowser Component provided by JupyterReact. Kindly let me know a solution to this problem. cc @echarles

Existing code

const App = () => {
  const [isTerminalOpen, setIsTerminalOpen] = useState(false);

  const handleSwitchChange = () => {
    setIsTerminalOpen((prev) => !prev);
  };

  return (
    <Box
      
    >
      <Jupyter  startDefaultKernel={true} terminals={true}>
        
          <FileBrowser/>
            <CustomToolbar switchState={isTerminalOpen} handleSwitchChange={handleSwitchChange} />
          
         
            <Notebook path='/testnb.ipynb' Toolbar={NotebookToolbar}/>
          
          {isTerminalOpen && (
            <Box
              
            >
              <Terminal colorMode='light' height='300px' />
            </Box>
          )}
        
      </Jupyter>
    </Box>
  );
};
@ImperatorRaj ImperatorRaj added the bug Something isn't working label Jul 17, 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