-
Notifications
You must be signed in to change notification settings - Fork 10
Upgrading to Jupyter 2 #129
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
Open
ck768
wants to merge
38
commits into
festim2
Choose a base branch
from
jupy2
base: festim2
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
bbbef65
upgraded to jupyter 2, made myst.yml instead of toc and conf
b35cd29
removed old .yml files
9bb112f
moved jupy2 dependencies
34c48e7
pre release
RemDelaporteMathurin 6362a70
quotes in pip command + dark logo
RemDelaporteMathurin 565b6ab
python command
RemDelaporteMathurin 2e61d17
fixed install of jupyterbook2
RemDelaporteMathurin c148449
attempt to fix the build
RemDelaporteMathurin fced6af
post build
RemDelaporteMathurin 8890cba
build and move html
RemDelaporteMathurin 657fc4b
override build
RemDelaporteMathurin f9f55e6
added hyphen
7edbec4
overriding build and creating environment with command
3152e32
added conda init
19093de
not using conda activate anymore
3c0836c
added node.js to dependancies
3be70ad
fixed hyphen?
03323cb
updated syntax
cbf2b5a
syntax update
3d85caa
added html to command line
96764d2
fixing path location
cda3f22
added init for jupy book
db86959
changed init to start
4d4a3d8
listing folder to see what builds
f1ce3ad
debugging fix
8f52c15
bash command
50d6728
removed markdown text in reactions.ipynb temporarily
f213379
adding /book to path
c0fb70c
trying example from jupy2 gh
5f42702
typo fix
577b340
added keep-host
0a57eb3
not creating environment to test if host connects
85887e5
changing host location
fc39efb
changing html to site
35b1fc7
adding back env
700d407
change host location before running commands
29c2de8
changed template
ba867e1
changed binder url
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,22 +1,24 @@ | ||
| version: 2 | ||
|
|
||
| # conda: | ||
| # environment: environment.yml | ||
|
|
||
| build: | ||
| os: ubuntu-22.04 | ||
| tools: | ||
| python: "miniconda-latest" | ||
| nodejs: "20" | ||
| apt_packages: | ||
| - libglx-mesa0 | ||
| - libgl1 | ||
| - xvfb | ||
| jobs: | ||
| pre_build: | ||
| # Generate the Sphinx configuration for this Jupyter Book so it builds. | ||
| - "jupyter-book config sphinx book/" | ||
|
|
||
| conda: | ||
| environment: environment.yml | ||
|
|
||
| sphinx: | ||
| builder: html | ||
| fail_on_warning: true | ||
| configuration: book/_config.yml | ||
| commands: | ||
| - npm install -g mystmd | ||
| # - pip install "jupyter-book>=2.0.0a0" | ||
| - conda env create --name festim-workshop-jupyter2 --file environment.yml | ||
| - mkdir -p $READTHEDOCS_OUTPUT/site | ||
| - ls | ||
| - export HOST=127.0.0.1 | ||
| - export BASE_URL=. | ||
| - conda run -n festim-workshop-jupyter2 bash -c "cd book/ && jupyter book build --html" | ||
| - cp -a book/_build/html/. "$READTHEDOCS_OUTPUT/html" && rm -r book/_build |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,25 @@ | ||
| # The FESTIM tutorial | ||
| # FESTIM-workshop | ||
|
|
||
| Welcome to the FESTIM tutorial! | ||
| The FESTIM workshop is a tutorial covering many aspects of the hydrogen transport code FESTIM. | ||
| Check out the [website](https://festim-workshop.readthedocs.io). | ||
|
|
||
| ## Launch in Binder | ||
|
|
||
| [](https://mybinder.org/v2/gh/festim-dev/FESTIM-workshop/main) | ||
|
|
||
| [Run this workshop](https://mybinder.org/v2/gh/festim-dev/FESTIM-workshop/main) in BinderHub | ||
|
|
||
| ## Local install | ||
|
|
||
| 1. Clone this repo | ||
|
|
||
| ``` | ||
| git clone https://github.com/festim-dev/FESTIM-workshop | ||
| ``` | ||
| 2. Create Conda environment (requires conda) | ||
|
|
||
| ``` | ||
| conda env create -f environment.yml | ||
| ``` | ||
|
|
||
| 3. You should then be able to execute the notebooks with the ``festim-workshop`` environment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,49 @@ | ||
| version: 1 | ||
| project: | ||
| title: FESTIM workshop | ||
| authors: | ||
| - name: The FESTIM community | ||
| github: festim-dev/FESTIM-workshop | ||
| thebe: | ||
| binder: | ||
| repo: festim-dev/FESTIM-workshop | ||
| provider: github | ||
| url: https://mybinder.org | ||
| ref: festim2 | ||
| toc: | ||
| - file: intro.md | ||
| - title: Getting started | ||
| children: | ||
| - file: content/applications/task01.ipynb | ||
| - title: Meshing | ||
| children: | ||
| - file: content/meshes/mesh_festim.ipynb | ||
| - file: content/meshes/mesh_fenics.ipynb | ||
| - file: content/meshes/mesh_gmsh.ipynb | ||
| - file: content/meshes/mesh_salome.ipynb | ||
| - title: Materials | ||
| children: | ||
| - file: content/material/material_basics.md | ||
| - file: content/material/material_htm.md | ||
| - file: content/material/material_advanced.md | ||
| - title: Species & Reactions | ||
| children: | ||
| - file: content/species_reactions/species.ipynb | ||
| - file: content/species_reactions/reactions.ipynb | ||
| - file: content/species_reactions/surface_reactions.ipynb | ||
| - title: Applications | ||
| children: | ||
| - file: content/applications/task02.ipynb | ||
| - file: content/applications/task03.ipynb | ||
| - file: content/applications/task04.ipynb | ||
| - file: content/applications/task07.ipynb | ||
| - file: content/applications/task08.ipynb | ||
| - file: content/applications/task06.ipynb | ||
| - file: content/applications/task10.ipynb | ||
| - file: content/applications/microstructure.md | ||
| site: | ||
| options: | ||
| logo: images/logo_light.png | ||
| logo_dark: images/logo_dark.svg | ||
| folders: true | ||
| template: "https://github.com/myst-templates/book-theme/archive/de4c1e9c09c6cd12fc529c1f22e8abf8e7f35381.zip" | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.