From e8ad8e56265aa44aa333727fcc9e77ffd8d75e8b Mon Sep 17 00:00:00 2001 From: Anders Hafreager Date: Sun, 15 Sep 2024 14:07:46 +0200 Subject: [PATCH] Updated path to jupyter notebooks --- .github/workflows/deploy.yaml | 2 +- README.md | 2 +- src/containers/Notebook.tsx | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 562d3d0..9020a59 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 7c747ee..fae164d 100644 --- a/src/containers/Notebook.tsx +++ b/src/containers/Notebook.tsx @@ -3,10 +3,10 @@ import { useStoreState } from '../hooks'; const Notebook = () => { const simulation = useStoreState(state => state.simulation.simulation) - let notebookUrl = `/atomify/jupyter/lab/index.html?path=analyze.ipynb` + 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}` + notebookUrl = `/atomify/jupyterlite/lab/index.html?path=${analysisScriptPath}` } return (