Skip to content

Commit dd261a6

Browse files
bzaczynskiclaude
andauthored
Use .venv naming in the Docling vs LlamaParse README (#813)
Matches the tutorial, which creates .venv and shows (.venv) prompts. Only the README changes; the scripts are untouched so ruff format stays green. Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent ae3367a commit dd261a6

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

extract-table-from-pdf-python/README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ The scripts parse `sample_report.pdf`, a short financial report with tables, and
2525
Create and activate a [virtual environment](https://realpython.com/python-virtual-environments-a-primer/), then install the dependencies:
2626

2727
```shell
28-
$ python3 -m venv venv/
29-
$ source venv/bin/activate
30-
(venv) $ python -m pip install -r requirements.txt
28+
$ python3 -m venv .venv/
29+
$ source .venv/bin/activate
30+
(.venv) $ python -m pip install -r requirements.txt
3131
```
3232

3333
Run the scripts from this folder so the relative path to `sample_report.pdf` resolves correctly.
@@ -37,9 +37,9 @@ Run the scripts from this folder so the relative path to `sample_report.pdf` res
3737
Docling runs on your machine and does not require an API key.
3838

3939
```shell
40-
(venv) $ python docling_extraction.py
41-
(venv) $ python docling_tables.py
42-
(venv) $ python docling_formats.py
40+
(.venv) $ python docling_extraction.py
41+
(.venv) $ python docling_tables.py
42+
(.venv) $ python docling_formats.py
4343
```
4444

4545
`docling_formats.py` writes `output_docling.md`, `output_docling.json`, and `output_docling.html` in the current directory.
@@ -49,10 +49,10 @@ Docling runs on your machine and does not require an API key.
4949
The LlamaParse scripts require a [Llama Cloud API key](https://cloud.llamaindex.ai/). Export it before running:
5050

5151
```shell
52-
(venv) $ export LLAMA_CLOUD_API_KEY="your-api-key"
53-
(venv) $ python llamaparse_extraction.py
54-
(venv) $ python llamaparse_tables.py
55-
(venv) $ python llamaparse_formats.py
52+
(.venv) $ export LLAMA_CLOUD_API_KEY="your-api-key"
53+
(.venv) $ python llamaparse_extraction.py
54+
(.venv) $ python llamaparse_tables.py
55+
(.venv) $ python llamaparse_formats.py
5656
```
5757

5858
`llamaparse_formats.py` writes `output_llamaparse.md`, `output_llamaparse.text`, and `output_llamaparse.json` in the current directory.

0 commit comments

Comments
 (0)