Skip to content

Commit

Permalink
Add binder link in README and on PR (#41)
Browse files Browse the repository at this point in the history
* Add binder directory, binder badge on readme and binder action on PR

* Fix postBuild script
  • Loading branch information
brichet committed May 21, 2024
1 parent 853271e commit 71e2581
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 1 deletion.
14 changes: 14 additions & 0 deletions .github/workflows/binder-badge.yml
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 }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# jupyter_chat

[![Github Actions Status](https://github.com/jupyterlab/jupyter-chat/workflows/Build/badge.svg)](https://github.com/jupyterlab/jupyter-chat/actions/workflows/build.yml)
[![Github Actions Status](https://github.com/jupyterlab/jupyter-chat/workflows/Build/badge.svg)](https://github.com/jupyterlab/jupyter-chat/actions/workflows/build.yml)[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/jupyterlab/jupyter-chat/main?urlpath=lab)

This project is a monorepo containing the frontend components and extensions to build
a chat in Jupyter.
Expand Down
18 changes: 18 additions & 0 deletions binder/environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: jupyterlab-collaborative-chat
channels:
- conda-forge
dependencies:
- jupyterlab >=4.0.0
- nodejs >=18,<19
- python >=3.11,<3.12
- yarn >=3,<4
# build
- hatchling >=1.5.0
- hatch-jupyter-builder >=0.3.2
- hatch-nodejs-version
# Use pip to get the the latest version
- pip:
- jupyter_server >=2.0.0
- jupyter_collaboration
- jupyter_ydoc >=2.0.0,<3.0.0
- pycrdt
13 changes: 13 additions & 0 deletions binder/postBuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env bash

# Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.

# Install collaborative chat
./scripts/install.sh collaborative

jupyter troubleshoot
jupyter notebook --show-config
jupyter lab --show-config
jupyter labextension list
jupyter server extension list

0 comments on commit 71e2581

Please sign in to comment.