@@ -3,8 +3,8 @@ Interactive tutorial notebooks for pyQuil and Forest
33
44[ ![ Binder] ( https://mybinder.org/badge_logo.svg )] [ binder ]
55[ ![ pipeline status] [ gitlab-badge ]] [ gitlab-project ]
6- [ ![ github release] [ github-badge ]] [ github-release ]
76[ ![ docker pulls] [ docker-badge ]] [ docker-image ]
7+ [ ![ github release] [ github-badge ]] [ github-release ]
88
99This is a Binder repository containing tutorial notebooks for learning about [ pyQuil] [ pyquil ] and
1010the Forest SDK ([ quilc] [ quilc ] and the [ QVM] [ qvm ] ). If you'd like to add a notebook, or change an
@@ -29,6 +29,38 @@ http://127.0.0.1:8888/?token=TOKEN
2929Copy paste the above URL into your browser, replacing 8888 with ` PORT ` . This will bring up the
3030JupyterLab interface.
3131
32+ Running the notebooks without using Docker
33+ ------------------------------------------
34+
35+ We recommend using the Binder link above, or following the Docker-based instructions, if all
36+ you want to do is run the notebooks. This is because it requires no setup on your end (except
37+ for maybe [ installing Docker] [ docker-docs ] ). However, if you'd like to run the notebooks locally
38+ without Docker, or if you'd like to make a pull request and contribute your own tutorial, you'll
39+ have to set up a Python environment with the necessary requirements installed. Normally, these are
40+ defined in a ` requirements.txt ` file, but adding one to this repo would cause Binder to use that
41+ for its configuration instead of the ` Dockerfile ` . Thus, we provide the requirements for the
42+ tutorials as a convenient ` extras_require ` extension to pyQuil's [ setup.py] [ pyquil-setup ] file.
43+ Thus, run the following command in your Python environment to install all the necessary
44+ requirements:
45+
46+ ``` bash
47+ pip install " pyquil[tutorials]"
48+ ```
49+
50+ Then, assuming you've cloned this repository and you're in its top-level directory, running
51+ ` jupyter notebook ` should be all you need to get started!
52+
53+ Contributing your own tutorial notebook
54+ ---------------------------------------
55+
56+ As mentioned above, if you'd like to contribute your own tutorial, or improve an existing one,
57+ you can make a pull request to this repository. The only caveat to this is that, if you add a
58+ notebook that depends on a third-party library that is not currently installed in the
59+ [ ` rigetti/forest-notebook ` ] [ forest-notebook ] Docker image (see the next section for more info),
60+ you will have to add the requirement to the ` tutorials ` entry of the ` extras_require ` section
61+ in pyQuil's [ setup.py] [ pyquil-setup ] file, and wait for the changes to take effect in the
62+ following release.
63+
3264Building your own Forest-backed Binder repository
3365-------------------------------------------------
3466
@@ -43,6 +75,7 @@ bottom of the README of the [rigetti/forest-notebook][forest-notebook-repo] repo
4375[ benchmarking ] : https://github.com/rigetti/forest-benchmarking
4476[ binder ] : https://mybinder.org/v2/gh/rigetti/forest-tutorials/master?urlpath=lab/tree/Welcome.ipynb
4577[ docker-badge ] : https://img.shields.io/docker/pulls/rigetti/forest-tutorials.svg
78+ [ docker-docs ] : https://docs.docker.com/
4679[ docker-image ] : https://hub.docker.com/r/rigetti/forest-tutorials
4780[ forest-notebook ] : https://hub.docker.com/r/rigetti/forest-notebook
4881[ forest-notebook-repo ] : https://github.com/rigetti/forest-notebook
@@ -51,5 +84,6 @@ bottom of the README of the [rigetti/forest-notebook][forest-notebook-repo] repo
5184[ gitlab-badge ] : https://gitlab.com/rigetti/forest/forest-tutorials/badges/master/pipeline.svg
5285[ gitlab-project ] : https://gitlab.com/rigetti/forest/forest-tutorials/commits/master
5386[ pyquil ] : https://github.com/rigetti/pyquil
87+ [ pyquil-setup ] : https://github.com/rigetti/pyquil/blob/master/setup.py
5488[ qvm ] : https://github.com/rigetti/qvm
5589[ quilc ] : https://github.com/rigetti/quilc
0 commit comments