diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index ae02c4c..7bea83e 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -21,7 +21,7 @@ jobs: python -m pip install -r jupyterlite/requirements.txt - name: Build JupyterLite site run: | - jupyter lite build --contents jupyterlite/content --output-dir public/jupyter + jupyter lite build --contents jupyterlite/content --output-dir public/jupyterlite - name: Use Node.js 18.x uses: actions/setup-node@v1 with: diff --git a/README.md b/README.md index c56a5f4..4c15ddf 100644 --- a/README.md +++ b/README.md @@ -71,7 +71,7 @@ pip install -r jupyterlite/requirements.txt Build JupyterLite ``` -jupyter lite build --contents jupyterlite/content --output-dir public/jupyter +jupyter lite build --contents jupyterlite/content --output-dir public/jupyterlite ``` ### Run locally diff --git a/src/containers/Notebook.tsx b/src/containers/Notebook.tsx index 133f1f2..7b9ac96 100644 --- a/src/containers/Notebook.tsx +++ b/src/containers/Notebook.tsx @@ -1,12 +1,12 @@ import Iframe from "react-iframe"; import { useStoreState } from "../hooks"; const Notebook = () => { - const simulation = useStoreState((state) => state.simulation.simulation); - - let notebookUrl = `/atomify/jupyter/lab/index.html?path=analyze.ipynb`; + const simulation = useStoreState(state => state.simulation.simulation) + + let notebookUrl = `/atomify/jupyterlite/lab/index.html?path=analyze.ipynb` if (simulation?.analysisScript) { - const analysisScriptPath = `${simulation.id}/${simulation.analysisScript}`; - notebookUrl = `/atomify/jupyter/lab/index.html?path=${analysisScriptPath}`; + const analysisScriptPath = `${simulation.id}/${simulation.analysisScript}` + notebookUrl = `/atomify/jupyterlite/lab/index.html?path=${analysisScriptPath}` } return (