diff --git a/.github/workflows/binder-badge.yml b/.github/workflows/binder-badge.yml new file mode 100644 index 0000000..87e9cd2 --- /dev/null +++ b/.github/workflows/binder-badge.yml @@ -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 }} diff --git a/README.md b/README.md index aa29773..32092c9 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/binder/environment.yml b/binder/environment.yml new file mode 100644 index 0000000..a6fdbcb --- /dev/null +++ b/binder/environment.yml @@ -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 diff --git a/binder/postBuild b/binder/postBuild new file mode 100755 index 0000000..0621192 --- /dev/null +++ b/binder/postBuild @@ -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