Skip to content

Commit

Permalink
Merge pull request #1 from greatexpectationslabs/first-draft
Browse files Browse the repository at this point in the history
Test draft of Try GX notebook
  • Loading branch information
rachhouse authored May 14, 2024
2 parents 5f8faef + b05ec7a commit f990e77
Show file tree
Hide file tree
Showing 5 changed files with 454 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# For available hooks and configuration options see: https://pre-commit.com/hooks.html
# To auto update to the latest versions `pre-commit autoupdate`
# To manually run against all files `pre-commit run --all-files`
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: no-commit-to-branch
args: [--branch, develop, --branch, main]
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Google Colab uses Python 3.10.12 as its default version.
FROM python:3.10

RUN pip install jupyterlab

WORKDIR /mnt
ENTRYPOINT ["jupyter", "lab","--ip=0.0.0.0","--allow-root"]
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,13 @@
# try-gx-notebook
Source control and development for the Try GX notebook from our docs
Source control and development for the Try GX notebook from the GX docs

This repo contains the *Try GX* notebook that runs in Google Colab and that is linked from the GX 1.0 docs.

## How to update the Try GX notebook
1. Clone this repo and `cd` to the local repo root folder.
2. Run `docker compose up` to start JupyterLab. Grab the URL of the containerized JupyterLab server (e.g. `http://127.0.0.1:8888/lab?token=fd1bdfacfccd7bdb16c25a4ca587af7517e203cf75fe95e9`) and paste it into your web browser to access JupyterLab.
3. Open `Try_GX.ipynb` in the JupyterLab UI.
4. Make your notebook updates (run/restart the notebook as necessary).
5. When you are ready to commit your notebook changes, restart the kernel, clear all cell outputs, and save the notebook so that a clean copy of the notebook is captured in source control.
* To restart the kernel & clear cell output, use this command under the JupyterLab menu: `Kernel` > `Restart the Kernel and Clear Outputs of All Cells...`
6. Run `docker compose down` in the repo root folder to shut down JupyterLab.
11 changes: 11 additions & 0 deletions compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
services:
notebook_development:
image: try-gx-notebook
container_name: try-gx-notebook
build:
context: .
dockerfile: Dockerfile
ports:
- 8888:8888
volumes:
- ./notebook:/mnt
Loading

0 comments on commit f990e77

Please sign in to comment.