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

Updated path to jupyter notebooks #122

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions src/containers/Notebook.tsx
Original file line number Diff line number Diff line change
@@ -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 (
Expand Down
Loading