Skip to content

Commit

Permalink
Merge branch 'binder-docs' into 'master'
Browse files Browse the repository at this point in the history
[web] Use new binder instance

See merge request ogs/ogs!5095
  • Loading branch information
bilke committed Sep 12, 2024
2 parents 49fc912 + b700238 commit 2976c5b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Tests/Data/Notebooks/testrunner.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def check_and_modify_frontmatter():
if "CI_MERGE_REQUEST_SOURCE_PROJECT_URL" in os.environ:
repo = os.environ["CI_MERGE_REQUEST_SOURCE_PROJECT_URL"]
branch = os.environ["CI_MERGE_REQUEST_SOURCE_BRANCH_NAME"]
binder_link = f"https://mybinder.org/v2/gh/bilke/binder-ogs-requirements/master?urlpath=git-pull%3Frepo={repo}%26urlpath=lab/tree/ogs/{notebook_file_path_relative}%26branch={branch}"
binder_link = f"https://binder.opengeosys.org/v2/gh/bilke/binder-ogs-requirements/master?urlpath=git-pull%3Frepo={repo}%26urlpath=lab/tree/ogs/{notebook_file_path_relative}%26branch={branch}"
text = """
<div class="note">
<p style="margin-top: 0; margin-bottom: 0;">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ On the web site or MR web previews on pages generated by a notebook there is a n

- Click the button to launch the notebook in BinderHub.
- The environment running in BinderHub is defined in [`bilke/binder-ogs-requirements` at GitHub](https://github.com/bilke/binder-ogs-requirements)
- When clicking the link it launches a Jupyter Lab instance pre-configured with ogs [via wheel](https://gitlab.opengeosys.org/ogs/ogs/-/blob/master/Tests/Data/requirements-ogs.txt#L2), clones the current ogs repo in it and opens the respective notebook ready to run. Please note that startup times may be several minutes and the computing resources are limited (1 core, 2GB RAM). For improved performance we would need to setup own infrastructure. Also currently only works for serial ogs configurations.
- When clicking the link it launches a Jupyter Lab instance pre-configured with ogs [via wheel](https://gitlab.opengeosys.org/ogs/ogs/-/blob/master/Tests/Data/requirements-ogs.txt#L2), clones the current ogs repo in it and opens the respective notebook ready to run. Please note that startup times may be several minutes (if the execution environment is not already built and cached) and the computing resources are limited. Currently only the serial ogs configuration is available.

#### PyVista notebooks on headless Linux systems

Expand Down

0 comments on commit 2976c5b

Please sign in to comment.