Skip to content

Commit 09a2bc4

Browse files
committed
add notebook documentation
1 parent 684cffb commit 09a2bc4

File tree

8 files changed

+1222
-0
lines changed

8 files changed

+1222
-0
lines changed

notebooks/README.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Running the record api tooling on notebooks
2+
3+
First of all, clone the record api repo
4+
5+
```
6+
git clone https://github.com/data-apis/python-record-api.git
7+
```
8+
9+
And create a new conda env for installing all the notebook's dependencies and the record api tooling.
10+
11+
```
12+
conda create -n record-api python=3.8
13+
conda activate record-api
14+
cd python-record-api
15+
pip install record_api
16+
```
17+
18+
We have an example of a notebook under `/notebooks/data`, so we need to transform it
19+
to a python file so the record api tooling work.
20+
21+
```
22+
cd notebooks
23+
python notebook_to_python.py data
24+
```
25+
26+
A new folder named `scripts` under the `notebooks` directory will be created with
27+
all the files converted into python files.
28+
29+
Then, run the file `run_record_api.sh` to generate the inferred API calls in each notebook.
30+
The output will be under `infer_apis` directory as a json per notebook file.

0 commit comments

Comments
 (0)