-
Notifications
You must be signed in to change notification settings - Fork 185
Add binder config, drop pytest-tornado #807
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
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
2bdc8c9
Copy binder config from jupyter_collaboration.
Carreau 6034a95
cleanup
Carreau baa56f0
setuptools
Carreau 3d9498b
debug
Carreau b40a1f4
re-pin setuptools
Carreau 83f348d
try to get rid of pytest-tornado (issue with setuptools 82+)
Carreau 5719bc7
try another postbuild
Carreau 9680a5d
python to bash
Carreau 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 |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| name: Binder Badge | ||
| on: | ||
| pull_request_target: | ||
| types: [opened] | ||
|
|
||
| jobs: | ||
| binder: | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| pull-requests: write | ||
| steps: | ||
| - uses: jupyterlab/maintainer-tools/.github/actions/binder-link@v1 | ||
| with: | ||
| github_token: ${{ secrets.github_token }} |
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 |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| name: example-environment | ||
| channels: | ||
| - conda-forge | ||
| - nodefaults | ||
| dependencies: | ||
| - jupyterlab >=4.0.0 | ||
| - nodejs >=25,<26 | ||
| - python >=3.14 | ||
| - yarn >=3,<4 | ||
| # build | ||
| - hatchling >=1.5.0 | ||
| - hatch-jupyter-builder >=0.3.2 | ||
| - hatch-nodejs-version | ||
| # dependencies | ||
| - jupyter_server >=2.0.0 |
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,7 @@ | ||
| # Copyright (c) Jupyter Development Team. | ||
| # Distributed under the terms of the Modified BSD License. | ||
| import logging | ||
|
|
||
| c.ServerApp.log_level = logging.DEBUG | ||
|
|
||
| c.ContentsManager.allow_hidden = True |
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,41 @@ | ||
| #!/usr/bin/env bash | ||
| # perform a development install of nbdime | ||
| # | ||
| # On Binder, this will run _after_ the environment has been fully created from | ||
| # the environment.yml in this directory. | ||
| # | ||
| # This script should also run locally on Linux/MacOS: | ||
| # | ||
| # bash binder/postBuild | ||
|
|
||
| set -euox pipefail | ||
|
|
||
| # verify the environment is self-consistent before even starting | ||
| pip check | ||
|
|
||
| # install the labextension | ||
| pip install -e . | ||
| jupyter labextension develop --overwrite . | ||
| jupyter server extension enable nbdime | ||
|
|
||
| # | ||
| mkdir -p ~/.jupyter/ | ||
|
|
||
| cp binder/jupyter_config.py ~/.jupyter/ | ||
|
|
||
| # verify the extension didn't break anything | ||
| pip check | ||
|
|
||
| # list the extensions | ||
| jupyter troubleshoot | ||
| jupyter notebook --show-config | ||
| jupyter lab --show-config | ||
| jupyter server extension list | ||
| jupyter labextension list | ||
|
|
||
|
|
||
| echo "" | ||
| echo "JupyterLab with nbdime is ready to run with:" | ||
| echo "" | ||
| echo " jupyter lab" | ||
| echo "" |
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here is another template for reference: https://github.com/jupyterlab/extension-template/blob/main/template/%7B%25%20if%20has_binder%20%25%7Dbinder%7B%25%20endif%20%25%7D/postBuild.jinja
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seem to be doing about the same, except it's using a super complicated python script, instead of setting bash
-xto each which commands are ran.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I am not opinionated on the language, whichever does the job.