-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from greatexpectationslabs/first-draft
Test draft of Try GX notebook
- Loading branch information
Showing
5 changed files
with
454 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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,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] |
This file contains 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 @@ | ||
# 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"] |
This file contains 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 |
---|---|---|
@@ -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. |
This file contains 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,11 @@ | ||
services: | ||
notebook_development: | ||
image: try-gx-notebook | ||
container_name: try-gx-notebook | ||
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
ports: | ||
- 8888:8888 | ||
volumes: | ||
- ./notebook:/mnt |
Oops, something went wrong.