Spaces:
Runtime error
Runtime error
Upload folder using huggingface_hub
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- .chroma/index/id_to_uuid_2588eb52-9dcf-4f42-bb77-6aa205700c56.pkl +3 -0
- .chroma/index/id_to_uuid_27052a91-c0d9-431e-b7a4-9c7cdad20fe0.pkl +3 -0
- .chroma/index/id_to_uuid_74fcbfbb-4b2b-4307-9672-94aea363432a.pkl +3 -0
- .chroma/index/id_to_uuid_ce3fb30a-9778-4b3a-badc-bf782fe6dd2b.pkl +3 -0
- .chroma/index/id_to_uuid_ebdacc45-2bf0-4642-b622-128d7efd57c7.pkl +3 -0
- .chroma/index/index_2588eb52-9dcf-4f42-bb77-6aa205700c56.bin +3 -0
- .chroma/index/index_27052a91-c0d9-431e-b7a4-9c7cdad20fe0.bin +3 -0
- .chroma/index/index_74fcbfbb-4b2b-4307-9672-94aea363432a.bin +3 -0
- .chroma/index/index_ce3fb30a-9778-4b3a-badc-bf782fe6dd2b.bin +3 -0
- .chroma/index/index_ebdacc45-2bf0-4642-b622-128d7efd57c7.bin +3 -0
- .chroma/index/index_metadata_2588eb52-9dcf-4f42-bb77-6aa205700c56.pkl +3 -0
- .chroma/index/index_metadata_27052a91-c0d9-431e-b7a4-9c7cdad20fe0.pkl +3 -0
- .chroma/index/index_metadata_74fcbfbb-4b2b-4307-9672-94aea363432a.pkl +3 -0
- .chroma/index/index_metadata_ce3fb30a-9778-4b3a-badc-bf782fe6dd2b.pkl +3 -0
- .chroma/index/index_metadata_ebdacc45-2bf0-4642-b622-128d7efd57c7.pkl +3 -0
- .chroma/index/uuid_to_id_2588eb52-9dcf-4f42-bb77-6aa205700c56.pkl +3 -0
- .chroma/index/uuid_to_id_27052a91-c0d9-431e-b7a4-9c7cdad20fe0.pkl +3 -0
- .chroma/index/uuid_to_id_74fcbfbb-4b2b-4307-9672-94aea363432a.pkl +3 -0
- .chroma/index/uuid_to_id_ce3fb30a-9778-4b3a-badc-bf782fe6dd2b.pkl +3 -0
- .chroma/index/uuid_to_id_ebdacc45-2bf0-4642-b622-128d7efd57c7.pkl +3 -0
- .gitattributes +122 -35
- .gitignore +15 -0
- .venv/.gitignore +1 -0
- .venv/Include/site/python3.10/greenlet/greenlet.h +164 -0
- .venv/Lib/site-packages/IPython/__init__.py +162 -0
- .venv/Lib/site-packages/IPython/__main__.py +15 -0
- .venv/Lib/site-packages/IPython/__pycache__/__init__.cpython-310.pyc +0 -0
- .venv/Lib/site-packages/IPython/__pycache__/__main__.cpython-310.pyc +0 -0
- .venv/Lib/site-packages/IPython/__pycache__/conftest.cpython-310.pyc +0 -0
- .venv/Lib/site-packages/IPython/__pycache__/consoleapp.cpython-310.pyc +0 -0
- .venv/Lib/site-packages/IPython/__pycache__/display.cpython-310.pyc +0 -0
- .venv/Lib/site-packages/IPython/__pycache__/paths.cpython-310.pyc +0 -0
- .venv/Lib/site-packages/IPython/conftest.py +87 -0
- .venv/Lib/site-packages/IPython/consoleapp.py +12 -0
- .venv/Lib/site-packages/IPython/core/__init__.py +0 -0
- .venv/Lib/site-packages/IPython/core/__pycache__/__init__.cpython-310.pyc +0 -0
- .venv/Lib/site-packages/IPython/core/__pycache__/alias.cpython-310.pyc +0 -0
- .venv/Lib/site-packages/IPython/core/__pycache__/application.cpython-310.pyc +0 -0
- .venv/Lib/site-packages/IPython/core/__pycache__/async_helpers.cpython-310.pyc +0 -0
- .venv/Lib/site-packages/IPython/core/__pycache__/autocall.cpython-310.pyc +0 -0
- .venv/Lib/site-packages/IPython/core/__pycache__/builtin_trap.cpython-310.pyc +0 -0
- .venv/Lib/site-packages/IPython/core/__pycache__/compilerop.cpython-310.pyc +0 -0
- .venv/Lib/site-packages/IPython/core/__pycache__/completer.cpython-310.pyc +0 -0
- .venv/Lib/site-packages/IPython/core/__pycache__/completerlib.cpython-310.pyc +0 -0
- .venv/Lib/site-packages/IPython/core/__pycache__/crashhandler.cpython-310.pyc +0 -0
- .venv/Lib/site-packages/IPython/core/__pycache__/debugger.cpython-310.pyc +0 -0
- .venv/Lib/site-packages/IPython/core/__pycache__/display.cpython-310.pyc +0 -0
- .venv/Lib/site-packages/IPython/core/__pycache__/display_functions.cpython-310.pyc +0 -0
- .venv/Lib/site-packages/IPython/core/__pycache__/display_trap.cpython-310.pyc +0 -0
- .venv/Lib/site-packages/IPython/core/__pycache__/displayhook.cpython-310.pyc +0 -0
.chroma/index/id_to_uuid_2588eb52-9dcf-4f42-bb77-6aa205700c56.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:875cb51cbe9ad7ac8a9bb9e9b450e7778ce9a202eff768955e60e04f65201b28
|
3 |
+
size 32670
|
.chroma/index/id_to_uuid_27052a91-c0d9-431e-b7a4-9c7cdad20fe0.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2e0a1559dd5576b7453c36b32286086484dc90f4d60dd359fce3fe9dd6f98a32
|
3 |
+
size 32676
|
.chroma/index/id_to_uuid_74fcbfbb-4b2b-4307-9672-94aea363432a.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1151492823ef42a0bde1c7a4ea99f5c7b9c996fc63ee5c094863b5c1de4a8cfd
|
3 |
+
size 32682
|
.chroma/index/id_to_uuid_ce3fb30a-9778-4b3a-badc-bf782fe6dd2b.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a8f86a27d501e6af93d7c55cd937ee417a4e12f9022bf5c89fa4c93b5106a7ba
|
3 |
+
size 32663
|
.chroma/index/id_to_uuid_ebdacc45-2bf0-4642-b622-128d7efd57c7.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:11454866614a924e404e3ee58c112689c08d9e26510cde0fcdad4bffeb1a6e67
|
3 |
+
size 32660
|
.chroma/index/index_2588eb52-9dcf-4f42-bb77-6aa205700c56.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:58d71a29f47f1bda077aed6e4202b633aa8c895847c71c5290e6d226630316dc
|
3 |
+
size 6368176
|
.chroma/index/index_27052a91-c0d9-431e-b7a4-9c7cdad20fe0.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:50dacae5f1ce2cb9dcf989d30d5b9577137b913299907947848283b8351db2b6
|
3 |
+
size 6368176
|
.chroma/index/index_74fcbfbb-4b2b-4307-9672-94aea363432a.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1ce347fbc4d028ff3c7c252f47a1b5c78362d907045d3857226c3b7012a5db51
|
3 |
+
size 6368176
|
.chroma/index/index_ce3fb30a-9778-4b3a-badc-bf782fe6dd2b.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5f41b79f61e412d2bd0f9afa37327fb19f58da2e6538f693825ae298cb30595c
|
3 |
+
size 6368176
|
.chroma/index/index_ebdacc45-2bf0-4642-b622-128d7efd57c7.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:35e7814a2533556e671811bf61866ab1f6885d8ab294881db5787dc2db153a35
|
3 |
+
size 6368176
|
.chroma/index/index_metadata_2588eb52-9dcf-4f42-bb77-6aa205700c56.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:46a36d968f72c856eec9fa063f05dd938b7ee804bb556c367e90ac8d8c44bd7e
|
3 |
+
size 105
|
.chroma/index/index_metadata_27052a91-c0d9-431e-b7a4-9c7cdad20fe0.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:db60427bc6acbdb4a76e8d4b558787af8cf0f216aea016e0a74e8250360a2832
|
3 |
+
size 105
|
.chroma/index/index_metadata_74fcbfbb-4b2b-4307-9672-94aea363432a.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d372707b76c0812a4421a8327a9d25c022ddcb98b42f9e047cfc74f820c53842
|
3 |
+
size 105
|
.chroma/index/index_metadata_ce3fb30a-9778-4b3a-badc-bf782fe6dd2b.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8cc172ad101d91f81eb51e566aade5cb6951010e741ea75c23ce27d6b6b2f058
|
3 |
+
size 105
|
.chroma/index/index_metadata_ebdacc45-2bf0-4642-b622-128d7efd57c7.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b03eafc1ed0eaae9bed7f9b05850b70cd33144c1692ee900c369ca38f5086079
|
3 |
+
size 105
|
.chroma/index/uuid_to_id_2588eb52-9dcf-4f42-bb77-6aa205700c56.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5c888d1939d6f17c6c5d93614f449abe649b1f892ac3706b910c76f30887368d
|
3 |
+
size 38219
|
.chroma/index/uuid_to_id_27052a91-c0d9-431e-b7a4-9c7cdad20fe0.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:485d7c6cd27522c35e9af42ba763bb8c774ccf44a00f64cd7cf52c0716164755
|
3 |
+
size 38219
|
.chroma/index/uuid_to_id_74fcbfbb-4b2b-4307-9672-94aea363432a.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:708f2c2b7c1cb9cc0d222d3d84604dc67fe6d45bafcd416ed45b067ed78c525b
|
3 |
+
size 38219
|
.chroma/index/uuid_to_id_ce3fb30a-9778-4b3a-badc-bf782fe6dd2b.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:657a42a49ce45069bf97badc5a53a1dbc088acb5586ea7ca15d103a531f78ab3
|
3 |
+
size 38219
|
.chroma/index/uuid_to_id_ebdacc45-2bf0-4642-b622-128d7efd57c7.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2b02f405703d5cac666e24fdd13e66e50616b8df1735bcc6c1a2a28526dfc393
|
3 |
+
size 38219
|
.gitattributes
CHANGED
@@ -1,35 +1,122 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Auto detect text files and perform LF normalization
|
2 |
+
* text=auto
|
3 |
+
.chroma/index/id_to_uuid_2588eb52-9dcf-4f42-bb77-6aa205700c56.pkl filter=lfs diff=lfs merge=lfs -text
|
4 |
+
.chroma/index/id_to_uuid_27052a91-c0d9-431e-b7a4-9c7cdad20fe0.pkl filter=lfs diff=lfs merge=lfs -text
|
5 |
+
.chroma/index/id_to_uuid_74fcbfbb-4b2b-4307-9672-94aea363432a.pkl filter=lfs diff=lfs merge=lfs -text
|
6 |
+
.chroma/index/id_to_uuid_ce3fb30a-9778-4b3a-badc-bf782fe6dd2b.pkl filter=lfs diff=lfs merge=lfs -text
|
7 |
+
.chroma/index/id_to_uuid_ebdacc45-2bf0-4642-b622-128d7efd57c7.pkl filter=lfs diff=lfs merge=lfs -text
|
8 |
+
.chroma/index/index_2588eb52-9dcf-4f42-bb77-6aa205700c56.bin filter=lfs diff=lfs merge=lfs -text
|
9 |
+
.chroma/index/index_27052a91-c0d9-431e-b7a4-9c7cdad20fe0.bin filter=lfs diff=lfs merge=lfs -text
|
10 |
+
.chroma/index/index_74fcbfbb-4b2b-4307-9672-94aea363432a.bin filter=lfs diff=lfs merge=lfs -text
|
11 |
+
.chroma/index/index_ce3fb30a-9778-4b3a-badc-bf782fe6dd2b.bin filter=lfs diff=lfs merge=lfs -text
|
12 |
+
.chroma/index/index_ebdacc45-2bf0-4642-b622-128d7efd57c7.bin filter=lfs diff=lfs merge=lfs -text
|
13 |
+
.chroma/index/index_metadata_2588eb52-9dcf-4f42-bb77-6aa205700c56.pkl filter=lfs diff=lfs merge=lfs -text
|
14 |
+
.chroma/index/index_metadata_27052a91-c0d9-431e-b7a4-9c7cdad20fe0.pkl filter=lfs diff=lfs merge=lfs -text
|
15 |
+
.chroma/index/index_metadata_74fcbfbb-4b2b-4307-9672-94aea363432a.pkl filter=lfs diff=lfs merge=lfs -text
|
16 |
+
.chroma/index/index_metadata_ce3fb30a-9778-4b3a-badc-bf782fe6dd2b.pkl filter=lfs diff=lfs merge=lfs -text
|
17 |
+
.chroma/index/index_metadata_ebdacc45-2bf0-4642-b622-128d7efd57c7.pkl filter=lfs diff=lfs merge=lfs -text
|
18 |
+
.chroma/index/uuid_to_id_2588eb52-9dcf-4f42-bb77-6aa205700c56.pkl filter=lfs diff=lfs merge=lfs -text
|
19 |
+
.chroma/index/uuid_to_id_27052a91-c0d9-431e-b7a4-9c7cdad20fe0.pkl filter=lfs diff=lfs merge=lfs -text
|
20 |
+
.chroma/index/uuid_to_id_74fcbfbb-4b2b-4307-9672-94aea363432a.pkl filter=lfs diff=lfs merge=lfs -text
|
21 |
+
.chroma/index/uuid_to_id_ce3fb30a-9778-4b3a-badc-bf782fe6dd2b.pkl filter=lfs diff=lfs merge=lfs -text
|
22 |
+
.chroma/index/uuid_to_id_ebdacc45-2bf0-4642-b622-128d7efd57c7.pkl filter=lfs diff=lfs merge=lfs -text
|
23 |
+
.venv/Lib/site-packages/_pulsar.cp310-win_amd64.pyd filter=lfs diff=lfs merge=lfs -text
|
24 |
+
.venv/Lib/site-packages/altair/vegalite/v5/schema/__pycache__/core.cpython-310.pyc filter=lfs diff=lfs merge=lfs -text
|
25 |
+
.venv/Lib/site-packages/coloredlogs.pth filter=lfs diff=lfs merge=lfs -text
|
26 |
+
.venv/Lib/site-packages/dateutil/zoneinfo/dateutil-zoneinfo.tar.gz filter=lfs diff=lfs merge=lfs -text
|
27 |
+
.venv/Lib/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_x86.pdb filter=lfs diff=lfs merge=lfs -text
|
28 |
+
.venv/Lib/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/inject_dll_amd64.pdb filter=lfs diff=lfs merge=lfs -text
|
29 |
+
.venv/Lib/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/inject_dll_x86.pdb filter=lfs diff=lfs merge=lfs -text
|
30 |
+
.venv/Lib/site-packages/distutils-precedence.pth filter=lfs diff=lfs merge=lfs -text
|
31 |
+
.venv/Lib/site-packages/duckdb.cp310-win_amd64.pyd filter=lfs diff=lfs merge=lfs -text
|
32 |
+
.venv/Lib/site-packages/gradio/frpc_windows_amd64_v0.2 filter=lfs diff=lfs merge=lfs -text
|
33 |
+
.venv/Lib/site-packages/gradio/templates/cdn/assets/index-d9794b8f.js.map filter=lfs diff=lfs merge=lfs -text
|
34 |
+
.venv/Lib/site-packages/gradio/templates/frontend/assets/index-0eddd93f.js.map filter=lfs diff=lfs merge=lfs -text
|
35 |
+
.venv/Lib/site-packages/matplotlib/mpl-data/sample_data/axes_grid/bivariate_normal.npy filter=lfs diff=lfs merge=lfs -text
|
36 |
+
.venv/Lib/site-packages/matplotlib/mpl-data/sample_data/goog.npz filter=lfs diff=lfs merge=lfs -text
|
37 |
+
.venv/Lib/site-packages/matplotlib/mpl-data/sample_data/jacksboro_fault_dem.npz filter=lfs diff=lfs merge=lfs -text
|
38 |
+
.venv/Lib/site-packages/matplotlib/mpl-data/sample_data/s1045.ima.gz filter=lfs diff=lfs merge=lfs -text
|
39 |
+
.venv/Lib/site-packages/matplotlib/mpl-data/sample_data/topobathy.npz filter=lfs diff=lfs merge=lfs -text
|
40 |
+
.venv/Lib/site-packages/matplotlib-3.7.1-py3.10-nspkg.pth filter=lfs diff=lfs merge=lfs -text
|
41 |
+
.venv/Lib/site-packages/numpy/.libs/libopenblas64__v0.3.23-gcc_10_3_0.dll filter=lfs diff=lfs merge=lfs -text
|
42 |
+
.venv/Lib/site-packages/numpy/core/_multiarray_umath.cp310-win_amd64.pyd filter=lfs diff=lfs merge=lfs -text
|
43 |
+
.venv/Lib/site-packages/numpy/core/_simd.cp310-win_amd64.pyd filter=lfs diff=lfs merge=lfs -text
|
44 |
+
.venv/Lib/site-packages/numpy/core/tests/data/astype_copy.pkl filter=lfs diff=lfs merge=lfs -text
|
45 |
+
.venv/Lib/site-packages/numpy/lib/tests/data/py2-objarr.npy filter=lfs diff=lfs merge=lfs -text
|
46 |
+
.venv/Lib/site-packages/numpy/lib/tests/data/py2-objarr.npz filter=lfs diff=lfs merge=lfs -text
|
47 |
+
.venv/Lib/site-packages/numpy/lib/tests/data/py3-objarr.npy filter=lfs diff=lfs merge=lfs -text
|
48 |
+
.venv/Lib/site-packages/numpy/lib/tests/data/py3-objarr.npz filter=lfs diff=lfs merge=lfs -text
|
49 |
+
.venv/Lib/site-packages/numpy/lib/tests/data/python3.npy filter=lfs diff=lfs merge=lfs -text
|
50 |
+
.venv/Lib/site-packages/numpy/lib/tests/data/win64python2.npy filter=lfs diff=lfs merge=lfs -text
|
51 |
+
.venv/Lib/site-packages/onnxruntime/capi/onnxruntime_pybind11_state.pyd filter=lfs diff=lfs merge=lfs -text
|
52 |
+
.venv/Lib/site-packages/onnxruntime/datasets/logreg_iris.onnx filter=lfs diff=lfs merge=lfs -text
|
53 |
+
.venv/Lib/site-packages/onnxruntime/datasets/mul_1.onnx filter=lfs diff=lfs merge=lfs -text
|
54 |
+
.venv/Lib/site-packages/onnxruntime/datasets/sigmoid.onnx filter=lfs diff=lfs merge=lfs -text
|
55 |
+
.venv/Lib/site-packages/pandas/_libs/algos.cp310-win_amd64.pyd filter=lfs diff=lfs merge=lfs -text
|
56 |
+
.venv/Lib/site-packages/pandas/_libs/groupby.cp310-win_amd64.pyd filter=lfs diff=lfs merge=lfs -text
|
57 |
+
.venv/Lib/site-packages/pandas/_libs/hashtable.cp310-win_amd64.pyd filter=lfs diff=lfs merge=lfs -text
|
58 |
+
.venv/Lib/site-packages/pandas/_libs/join.cp310-win_amd64.pyd filter=lfs diff=lfs merge=lfs -text
|
59 |
+
.venv/Lib/site-packages/pandas/tests/io/data/legacy_pickle/1.2.4/empty_frame_v1_2_4-GH\#42345.pkl filter=lfs diff=lfs merge=lfs -text
|
60 |
+
.venv/Lib/site-packages/pandas/tests/io/data/parquet/simple.parquet filter=lfs diff=lfs merge=lfs -text
|
61 |
+
.venv/Lib/site-packages/pandas/tests/io/data/pickle/test_mi_py27.pkl filter=lfs diff=lfs merge=lfs -text
|
62 |
+
.venv/Lib/site-packages/pandas/tests/io/data/pickle/test_py27.pkl filter=lfs diff=lfs merge=lfs -text
|
63 |
+
.venv/Lib/site-packages/PIL/_imaging.cp310-win_amd64.pyd filter=lfs diff=lfs merge=lfs -text
|
64 |
+
.venv/Lib/site-packages/PIL/_imagingft.cp310-win_amd64.pyd filter=lfs diff=lfs merge=lfs -text
|
65 |
+
.venv/Lib/site-packages/pythonwin/mfc140u.dll filter=lfs diff=lfs merge=lfs -text
|
66 |
+
.venv/Lib/site-packages/pythonwin/win32ui.pyd filter=lfs diff=lfs merge=lfs -text
|
67 |
+
.venv/Lib/site-packages/PyWin32.chm filter=lfs diff=lfs merge=lfs -text
|
68 |
+
.venv/Lib/site-packages/pywin32.pth filter=lfs diff=lfs merge=lfs -text
|
69 |
+
.venv/Lib/site-packages/tiktoken/_tiktoken.cp310-win_amd64.pyd filter=lfs diff=lfs merge=lfs -text
|
70 |
+
.venv/Lib/site-packages/tokenizers/tokenizers.cp310-win_amd64.pyd filter=lfs diff=lfs merge=lfs -text
|
71 |
+
.venv/Lib/site-packages/tornado/test/static/sample.xml.bz2 filter=lfs diff=lfs merge=lfs -text
|
72 |
+
.venv/Lib/site-packages/tornado/test/static/sample.xml.gz filter=lfs diff=lfs merge=lfs -text
|
73 |
+
data/XWines_Full_100K_wines.csv filter=lfs diff=lfs merge=lfs -text
|
74 |
+
vivino-api/node_modules/.bin/acorn filter=lfs diff=lfs merge=lfs -text
|
75 |
+
vivino-api/node_modules/.bin/acorn.cmd filter=lfs diff=lfs merge=lfs -text
|
76 |
+
vivino-api/node_modules/.bin/acorn.ps1 filter=lfs diff=lfs merge=lfs -text
|
77 |
+
vivino-api/node_modules/.bin/eslint filter=lfs diff=lfs merge=lfs -text
|
78 |
+
vivino-api/node_modules/.bin/eslint.cmd filter=lfs diff=lfs merge=lfs -text
|
79 |
+
vivino-api/node_modules/.bin/eslint.ps1 filter=lfs diff=lfs merge=lfs -text
|
80 |
+
vivino-api/node_modules/.bin/esparse filter=lfs diff=lfs merge=lfs -text
|
81 |
+
vivino-api/node_modules/.bin/esparse.cmd filter=lfs diff=lfs merge=lfs -text
|
82 |
+
vivino-api/node_modules/.bin/esparse.ps1 filter=lfs diff=lfs merge=lfs -text
|
83 |
+
vivino-api/node_modules/.bin/esvalidate filter=lfs diff=lfs merge=lfs -text
|
84 |
+
vivino-api/node_modules/.bin/esvalidate.cmd filter=lfs diff=lfs merge=lfs -text
|
85 |
+
vivino-api/node_modules/.bin/esvalidate.ps1 filter=lfs diff=lfs merge=lfs -text
|
86 |
+
vivino-api/node_modules/.bin/extract-zip filter=lfs diff=lfs merge=lfs -text
|
87 |
+
vivino-api/node_modules/.bin/extract-zip.cmd filter=lfs diff=lfs merge=lfs -text
|
88 |
+
vivino-api/node_modules/.bin/extract-zip.ps1 filter=lfs diff=lfs merge=lfs -text
|
89 |
+
vivino-api/node_modules/.bin/js-yaml filter=lfs diff=lfs merge=lfs -text
|
90 |
+
vivino-api/node_modules/.bin/js-yaml.cmd filter=lfs diff=lfs merge=lfs -text
|
91 |
+
vivino-api/node_modules/.bin/js-yaml.ps1 filter=lfs diff=lfs merge=lfs -text
|
92 |
+
vivino-api/node_modules/.bin/mkdirp filter=lfs diff=lfs merge=lfs -text
|
93 |
+
vivino-api/node_modules/.bin/mkdirp.cmd filter=lfs diff=lfs merge=lfs -text
|
94 |
+
vivino-api/node_modules/.bin/mkdirp.ps1 filter=lfs diff=lfs merge=lfs -text
|
95 |
+
vivino-api/node_modules/.bin/node-which filter=lfs diff=lfs merge=lfs -text
|
96 |
+
vivino-api/node_modules/.bin/node-which.cmd filter=lfs diff=lfs merge=lfs -text
|
97 |
+
vivino-api/node_modules/.bin/node-which.ps1 filter=lfs diff=lfs merge=lfs -text
|
98 |
+
vivino-api/node_modules/.bin/rimraf filter=lfs diff=lfs merge=lfs -text
|
99 |
+
vivino-api/node_modules/.bin/rimraf.cmd filter=lfs diff=lfs merge=lfs -text
|
100 |
+
vivino-api/node_modules/.bin/rimraf.ps1 filter=lfs diff=lfs merge=lfs -text
|
101 |
+
vivino-api/node_modules/.bin/semver filter=lfs diff=lfs merge=lfs -text
|
102 |
+
vivino-api/node_modules/.bin/semver.cmd filter=lfs diff=lfs merge=lfs -text
|
103 |
+
vivino-api/node_modules/.bin/semver.ps1 filter=lfs diff=lfs merge=lfs -text
|
104 |
+
vivino-api/node_modules/flat-cache/node_modules/.bin/rimraf filter=lfs diff=lfs merge=lfs -text
|
105 |
+
vivino-api/node_modules/flat-cache/node_modules/.bin/rimraf.cmd filter=lfs diff=lfs merge=lfs -text
|
106 |
+
vivino-api/node_modules/flat-cache/node_modules/.bin/rimraf.ps1 filter=lfs diff=lfs merge=lfs -text
|
107 |
+
vivino-api/node_modules/puppeteer/.local-chromium/win64-818858/chrome-win/chrome.dll filter=lfs diff=lfs merge=lfs -text
|
108 |
+
vivino-api/node_modules/puppeteer/.local-chromium/win64-818858/chrome-win/chrome.exe filter=lfs diff=lfs merge=lfs -text
|
109 |
+
vivino-api/node_modules/puppeteer/.local-chromium/win64-818858/chrome-win/chrome_200_percent.pak filter=lfs diff=lfs merge=lfs -text
|
110 |
+
vivino-api/node_modules/puppeteer/.local-chromium/win64-818858/chrome-win/chrome_pwa_launcher.exe filter=lfs diff=lfs merge=lfs -text
|
111 |
+
vivino-api/node_modules/puppeteer/.local-chromium/win64-818858/chrome-win/D3DCompiler_47.dll filter=lfs diff=lfs merge=lfs -text
|
112 |
+
vivino-api/node_modules/puppeteer/.local-chromium/win64-818858/chrome-win/elevation_service.exe filter=lfs diff=lfs merge=lfs -text
|
113 |
+
vivino-api/node_modules/puppeteer/.local-chromium/win64-818858/chrome-win/icudtl.dat filter=lfs diff=lfs merge=lfs -text
|
114 |
+
vivino-api/node_modules/puppeteer/.local-chromium/win64-818858/chrome-win/interactive_ui_tests.exe filter=lfs diff=lfs merge=lfs -text
|
115 |
+
vivino-api/node_modules/puppeteer/.local-chromium/win64-818858/chrome-win/libGLESv2.dll filter=lfs diff=lfs merge=lfs -text
|
116 |
+
vivino-api/node_modules/puppeteer/.local-chromium/win64-818858/chrome-win/MEIPreload/preloaded_data.pb filter=lfs diff=lfs merge=lfs -text
|
117 |
+
vivino-api/node_modules/puppeteer/.local-chromium/win64-818858/chrome-win/mojo_core.dll filter=lfs diff=lfs merge=lfs -text
|
118 |
+
vivino-api/node_modules/puppeteer/.local-chromium/win64-818858/chrome-win/nacl_irt_x86_64.nexe filter=lfs diff=lfs merge=lfs -text
|
119 |
+
vivino-api/node_modules/puppeteer/.local-chromium/win64-818858/chrome-win/resources.pak filter=lfs diff=lfs merge=lfs -text
|
120 |
+
vivino-api/node_modules/puppeteer/.local-chromium/win64-818858/chrome-win/swiftshader/libGLESv2.dll filter=lfs diff=lfs merge=lfs -text
|
121 |
+
vivino-api/node_modules/puppeteer/.local-chromium/win64-818858/chrome-win/v8_context_snapshot.bin filter=lfs diff=lfs merge=lfs -text
|
122 |
+
vivino-api/node_modules/tar-fs/test/fixtures/invalid.tar filter=lfs diff=lfs merge=lfs -text
|
.gitignore
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Folder ignores
|
2 |
+
__pycache__/
|
3 |
+
.chroma/
|
4 |
+
.venv/
|
5 |
+
vivino-api/node_modules/
|
6 |
+
vivino-api/output/
|
7 |
+
vivino-api/.vscode/
|
8 |
+
winenara_scrapy/assets/
|
9 |
+
|
10 |
+
# File ignores
|
11 |
+
app.py
|
12 |
+
pip.txt
|
13 |
+
test.ipynb
|
14 |
+
secrets.ini
|
15 |
+
wine_crawler.ipynb
|
.venv/.gitignore
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
*
|
.venv/Include/site/python3.10/greenlet/greenlet.h
ADDED
@@ -0,0 +1,164 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/* -*- indent-tabs-mode: nil; tab-width: 4; -*- */
|
2 |
+
|
3 |
+
/* Greenlet object interface */
|
4 |
+
|
5 |
+
#ifndef Py_GREENLETOBJECT_H
|
6 |
+
#define Py_GREENLETOBJECT_H
|
7 |
+
|
8 |
+
|
9 |
+
#include <Python.h>
|
10 |
+
|
11 |
+
#ifdef __cplusplus
|
12 |
+
extern "C" {
|
13 |
+
#endif
|
14 |
+
|
15 |
+
/* This is deprecated and undocumented. It does not change. */
|
16 |
+
#define GREENLET_VERSION "1.0.0"
|
17 |
+
|
18 |
+
#ifndef GREENLET_MODULE
|
19 |
+
#define implementation_ptr_t void*
|
20 |
+
#endif
|
21 |
+
|
22 |
+
typedef struct _greenlet {
|
23 |
+
PyObject_HEAD
|
24 |
+
PyObject* weakreflist;
|
25 |
+
PyObject* dict;
|
26 |
+
implementation_ptr_t pimpl;
|
27 |
+
} PyGreenlet;
|
28 |
+
|
29 |
+
#define PyGreenlet_Check(op) (op && PyObject_TypeCheck(op, &PyGreenlet_Type))
|
30 |
+
|
31 |
+
|
32 |
+
/* C API functions */
|
33 |
+
|
34 |
+
/* Total number of symbols that are exported */
|
35 |
+
#define PyGreenlet_API_pointers 12
|
36 |
+
|
37 |
+
#define PyGreenlet_Type_NUM 0
|
38 |
+
#define PyExc_GreenletError_NUM 1
|
39 |
+
#define PyExc_GreenletExit_NUM 2
|
40 |
+
|
41 |
+
#define PyGreenlet_New_NUM 3
|
42 |
+
#define PyGreenlet_GetCurrent_NUM 4
|
43 |
+
#define PyGreenlet_Throw_NUM 5
|
44 |
+
#define PyGreenlet_Switch_NUM 6
|
45 |
+
#define PyGreenlet_SetParent_NUM 7
|
46 |
+
|
47 |
+
#define PyGreenlet_MAIN_NUM 8
|
48 |
+
#define PyGreenlet_STARTED_NUM 9
|
49 |
+
#define PyGreenlet_ACTIVE_NUM 10
|
50 |
+
#define PyGreenlet_GET_PARENT_NUM 11
|
51 |
+
|
52 |
+
#ifndef GREENLET_MODULE
|
53 |
+
/* This section is used by modules that uses the greenlet C API */
|
54 |
+
static void** _PyGreenlet_API = NULL;
|
55 |
+
|
56 |
+
# define PyGreenlet_Type \
|
57 |
+
(*(PyTypeObject*)_PyGreenlet_API[PyGreenlet_Type_NUM])
|
58 |
+
|
59 |
+
# define PyExc_GreenletError \
|
60 |
+
((PyObject*)_PyGreenlet_API[PyExc_GreenletError_NUM])
|
61 |
+
|
62 |
+
# define PyExc_GreenletExit \
|
63 |
+
((PyObject*)_PyGreenlet_API[PyExc_GreenletExit_NUM])
|
64 |
+
|
65 |
+
/*
|
66 |
+
* PyGreenlet_New(PyObject *args)
|
67 |
+
*
|
68 |
+
* greenlet.greenlet(run, parent=None)
|
69 |
+
*/
|
70 |
+
# define PyGreenlet_New \
|
71 |
+
(*(PyGreenlet * (*)(PyObject * run, PyGreenlet * parent)) \
|
72 |
+
_PyGreenlet_API[PyGreenlet_New_NUM])
|
73 |
+
|
74 |
+
/*
|
75 |
+
* PyGreenlet_GetCurrent(void)
|
76 |
+
*
|
77 |
+
* greenlet.getcurrent()
|
78 |
+
*/
|
79 |
+
# define PyGreenlet_GetCurrent \
|
80 |
+
(*(PyGreenlet * (*)(void)) _PyGreenlet_API[PyGreenlet_GetCurrent_NUM])
|
81 |
+
|
82 |
+
/*
|
83 |
+
* PyGreenlet_Throw(
|
84 |
+
* PyGreenlet *greenlet,
|
85 |
+
* PyObject *typ,
|
86 |
+
* PyObject *val,
|
87 |
+
* PyObject *tb)
|
88 |
+
*
|
89 |
+
* g.throw(...)
|
90 |
+
*/
|
91 |
+
# define PyGreenlet_Throw \
|
92 |
+
(*(PyObject * (*)(PyGreenlet * self, \
|
93 |
+
PyObject * typ, \
|
94 |
+
PyObject * val, \
|
95 |
+
PyObject * tb)) \
|
96 |
+
_PyGreenlet_API[PyGreenlet_Throw_NUM])
|
97 |
+
|
98 |
+
/*
|
99 |
+
* PyGreenlet_Switch(PyGreenlet *greenlet, PyObject *args)
|
100 |
+
*
|
101 |
+
* g.switch(*args, **kwargs)
|
102 |
+
*/
|
103 |
+
# define PyGreenlet_Switch \
|
104 |
+
(*(PyObject * \
|
105 |
+
(*)(PyGreenlet * greenlet, PyObject * args, PyObject * kwargs)) \
|
106 |
+
_PyGreenlet_API[PyGreenlet_Switch_NUM])
|
107 |
+
|
108 |
+
/*
|
109 |
+
* PyGreenlet_SetParent(PyObject *greenlet, PyObject *new_parent)
|
110 |
+
*
|
111 |
+
* g.parent = new_parent
|
112 |
+
*/
|
113 |
+
# define PyGreenlet_SetParent \
|
114 |
+
(*(int (*)(PyGreenlet * greenlet, PyGreenlet * nparent)) \
|
115 |
+
_PyGreenlet_API[PyGreenlet_SetParent_NUM])
|
116 |
+
|
117 |
+
/*
|
118 |
+
* PyGreenlet_GetParent(PyObject* greenlet)
|
119 |
+
*
|
120 |
+
* return greenlet.parent;
|
121 |
+
*
|
122 |
+
* This could return NULL even if there is no exception active.
|
123 |
+
* If it does not return NULL, you are responsible for decrementing the
|
124 |
+
* reference count.
|
125 |
+
*/
|
126 |
+
# define PyGreenlet_GetParent \
|
127 |
+
(*(PyGreenlet* (*)(PyGreenlet*)) \
|
128 |
+
_PyGreenlet_API[PyGreenlet_GET_PARENT_NUM])
|
129 |
+
|
130 |
+
/*
|
131 |
+
* deprecated, undocumented alias.
|
132 |
+
*/
|
133 |
+
# define PyGreenlet_GET_PARENT PyGreenlet_GetParent
|
134 |
+
|
135 |
+
# define PyGreenlet_MAIN \
|
136 |
+
(*(int (*)(PyGreenlet*)) \
|
137 |
+
_PyGreenlet_API[PyGreenlet_MAIN_NUM])
|
138 |
+
|
139 |
+
# define PyGreenlet_STARTED \
|
140 |
+
(*(int (*)(PyGreenlet*)) \
|
141 |
+
_PyGreenlet_API[PyGreenlet_STARTED_NUM])
|
142 |
+
|
143 |
+
# define PyGreenlet_ACTIVE \
|
144 |
+
(*(int (*)(PyGreenlet*)) \
|
145 |
+
_PyGreenlet_API[PyGreenlet_ACTIVE_NUM])
|
146 |
+
|
147 |
+
|
148 |
+
|
149 |
+
|
150 |
+
/* Macro that imports greenlet and initializes C API */
|
151 |
+
/* NOTE: This has actually moved to ``greenlet._greenlet._C_API``, but we
|
152 |
+
keep the older definition to be sure older code that might have a copy of
|
153 |
+
the header still works. */
|
154 |
+
# define PyGreenlet_Import() \
|
155 |
+
{ \
|
156 |
+
_PyGreenlet_API = (void**)PyCapsule_Import("greenlet._C_API", 0); \
|
157 |
+
}
|
158 |
+
|
159 |
+
#endif /* GREENLET_MODULE */
|
160 |
+
|
161 |
+
#ifdef __cplusplus
|
162 |
+
}
|
163 |
+
#endif
|
164 |
+
#endif /* !Py_GREENLETOBJECT_H */
|
.venv/Lib/site-packages/IPython/__init__.py
ADDED
@@ -0,0 +1,162 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# PYTHON_ARGCOMPLETE_OK
|
2 |
+
"""
|
3 |
+
IPython: tools for interactive and parallel computing in Python.
|
4 |
+
|
5 |
+
https://ipython.org
|
6 |
+
"""
|
7 |
+
#-----------------------------------------------------------------------------
|
8 |
+
# Copyright (c) 2008-2011, IPython Development Team.
|
9 |
+
# Copyright (c) 2001-2007, Fernando Perez <[email protected]>
|
10 |
+
# Copyright (c) 2001, Janko Hauser <[email protected]>
|
11 |
+
# Copyright (c) 2001, Nathaniel Gray <[email protected]>
|
12 |
+
#
|
13 |
+
# Distributed under the terms of the Modified BSD License.
|
14 |
+
#
|
15 |
+
# The full license is in the file COPYING.txt, distributed with this software.
|
16 |
+
#-----------------------------------------------------------------------------
|
17 |
+
|
18 |
+
#-----------------------------------------------------------------------------
|
19 |
+
# Imports
|
20 |
+
#-----------------------------------------------------------------------------
|
21 |
+
|
22 |
+
import sys
|
23 |
+
|
24 |
+
#-----------------------------------------------------------------------------
|
25 |
+
# Setup everything
|
26 |
+
#-----------------------------------------------------------------------------
|
27 |
+
|
28 |
+
# Don't forget to also update setup.py when this changes!
|
29 |
+
if sys.version_info < (3, 9):
|
30 |
+
raise ImportError(
|
31 |
+
"""
|
32 |
+
IPython 8.13+ supports Python 3.9 and above, following NEP 29.
|
33 |
+
IPython 8.0-8.12 supports Python 3.8 and above, following NEP 29.
|
34 |
+
When using Python 2.7, please install IPython 5.x LTS Long Term Support version.
|
35 |
+
Python 3.3 and 3.4 were supported up to IPython 6.x.
|
36 |
+
Python 3.5 was supported with IPython 7.0 to 7.9.
|
37 |
+
Python 3.6 was supported with IPython up to 7.16.
|
38 |
+
Python 3.7 was still supported with the 7.x branch.
|
39 |
+
|
40 |
+
See IPython `README.rst` file for more information:
|
41 |
+
|
42 |
+
https://github.com/ipython/ipython/blob/main/README.rst
|
43 |
+
|
44 |
+
"""
|
45 |
+
)
|
46 |
+
|
47 |
+
#-----------------------------------------------------------------------------
|
48 |
+
# Setup the top level names
|
49 |
+
#-----------------------------------------------------------------------------
|
50 |
+
|
51 |
+
from .core.getipython import get_ipython
|
52 |
+
from .core import release
|
53 |
+
from .core.application import Application
|
54 |
+
from .terminal.embed import embed
|
55 |
+
|
56 |
+
from .core.interactiveshell import InteractiveShell
|
57 |
+
from .utils.sysinfo import sys_info
|
58 |
+
from .utils.frame import extract_module_locals
|
59 |
+
|
60 |
+
__all__ = ["start_ipython", "embed", "start_kernel", "embed_kernel"]
|
61 |
+
|
62 |
+
# Release data
|
63 |
+
__author__ = '%s <%s>' % (release.author, release.author_email)
|
64 |
+
__license__ = release.license
|
65 |
+
__version__ = release.version
|
66 |
+
version_info = release.version_info
|
67 |
+
# list of CVEs that should have been patched in this release.
|
68 |
+
# this is informational and should not be relied upon.
|
69 |
+
__patched_cves__ = {"CVE-2022-21699", "CVE-2023-24816"}
|
70 |
+
|
71 |
+
|
72 |
+
def embed_kernel(module=None, local_ns=None, **kwargs):
|
73 |
+
"""Embed and start an IPython kernel in a given scope.
|
74 |
+
|
75 |
+
If you don't want the kernel to initialize the namespace
|
76 |
+
from the scope of the surrounding function,
|
77 |
+
and/or you want to load full IPython configuration,
|
78 |
+
you probably want `IPython.start_kernel()` instead.
|
79 |
+
|
80 |
+
Parameters
|
81 |
+
----------
|
82 |
+
module : types.ModuleType, optional
|
83 |
+
The module to load into IPython globals (default: caller)
|
84 |
+
local_ns : dict, optional
|
85 |
+
The namespace to load into IPython user namespace (default: caller)
|
86 |
+
**kwargs : various, optional
|
87 |
+
Further keyword args are relayed to the IPKernelApp constructor,
|
88 |
+
such as `config`, a traitlets :class:`Config` object (see :ref:`configure_start_ipython`),
|
89 |
+
allowing configuration of the kernel (see :ref:`kernel_options`). Will only have an effect
|
90 |
+
on the first embed_kernel call for a given process.
|
91 |
+
"""
|
92 |
+
|
93 |
+
(caller_module, caller_locals) = extract_module_locals(1)
|
94 |
+
if module is None:
|
95 |
+
module = caller_module
|
96 |
+
if local_ns is None:
|
97 |
+
local_ns = caller_locals
|
98 |
+
|
99 |
+
# Only import .zmq when we really need it
|
100 |
+
from ipykernel.embed import embed_kernel as real_embed_kernel
|
101 |
+
real_embed_kernel(module=module, local_ns=local_ns, **kwargs)
|
102 |
+
|
103 |
+
def start_ipython(argv=None, **kwargs):
|
104 |
+
"""Launch a normal IPython instance (as opposed to embedded)
|
105 |
+
|
106 |
+
`IPython.embed()` puts a shell in a particular calling scope,
|
107 |
+
such as a function or method for debugging purposes,
|
108 |
+
which is often not desirable.
|
109 |
+
|
110 |
+
`start_ipython()` does full, regular IPython initialization,
|
111 |
+
including loading startup files, configuration, etc.
|
112 |
+
much of which is skipped by `embed()`.
|
113 |
+
|
114 |
+
This is a public API method, and will survive implementation changes.
|
115 |
+
|
116 |
+
Parameters
|
117 |
+
----------
|
118 |
+
argv : list or None, optional
|
119 |
+
If unspecified or None, IPython will parse command-line options from sys.argv.
|
120 |
+
To prevent any command-line parsing, pass an empty list: `argv=[]`.
|
121 |
+
user_ns : dict, optional
|
122 |
+
specify this dictionary to initialize the IPython user namespace with particular values.
|
123 |
+
**kwargs : various, optional
|
124 |
+
Any other kwargs will be passed to the Application constructor,
|
125 |
+
such as `config`, a traitlets :class:`Config` object (see :ref:`configure_start_ipython`),
|
126 |
+
allowing configuration of the instance (see :ref:`terminal_options`).
|
127 |
+
"""
|
128 |
+
from IPython.terminal.ipapp import launch_new_instance
|
129 |
+
return launch_new_instance(argv=argv, **kwargs)
|
130 |
+
|
131 |
+
def start_kernel(argv=None, **kwargs):
|
132 |
+
"""Launch a normal IPython kernel instance (as opposed to embedded)
|
133 |
+
|
134 |
+
`IPython.embed_kernel()` puts a shell in a particular calling scope,
|
135 |
+
such as a function or method for debugging purposes,
|
136 |
+
which is often not desirable.
|
137 |
+
|
138 |
+
`start_kernel()` does full, regular IPython initialization,
|
139 |
+
including loading startup files, configuration, etc.
|
140 |
+
much of which is skipped by `embed_kernel()`.
|
141 |
+
|
142 |
+
Parameters
|
143 |
+
----------
|
144 |
+
argv : list or None, optional
|
145 |
+
If unspecified or None, IPython will parse command-line options from sys.argv.
|
146 |
+
To prevent any command-line parsing, pass an empty list: `argv=[]`.
|
147 |
+
user_ns : dict, optional
|
148 |
+
specify this dictionary to initialize the IPython user namespace with particular values.
|
149 |
+
**kwargs : various, optional
|
150 |
+
Any other kwargs will be passed to the Application constructor,
|
151 |
+
such as `config`, a traitlets :class:`Config` object (see :ref:`configure_start_ipython`),
|
152 |
+
allowing configuration of the kernel (see :ref:`kernel_options`).
|
153 |
+
"""
|
154 |
+
import warnings
|
155 |
+
|
156 |
+
warnings.warn(
|
157 |
+
"start_kernel is deprecated since IPython 8.0, use from `ipykernel.kernelapp.launch_new_instance`",
|
158 |
+
DeprecationWarning,
|
159 |
+
stacklevel=2,
|
160 |
+
)
|
161 |
+
from ipykernel.kernelapp import launch_new_instance
|
162 |
+
return launch_new_instance(argv=argv, **kwargs)
|
.venv/Lib/site-packages/IPython/__main__.py
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# PYTHON_ARGCOMPLETE_OK
|
2 |
+
# encoding: utf-8
|
3 |
+
"""Terminal-based IPython entry point.
|
4 |
+
"""
|
5 |
+
#-----------------------------------------------------------------------------
|
6 |
+
# Copyright (c) 2012, IPython Development Team.
|
7 |
+
#
|
8 |
+
# Distributed under the terms of the Modified BSD License.
|
9 |
+
#
|
10 |
+
# The full license is in the file COPYING.txt, distributed with this software.
|
11 |
+
#-----------------------------------------------------------------------------
|
12 |
+
|
13 |
+
from IPython import start_ipython
|
14 |
+
|
15 |
+
start_ipython()
|
.venv/Lib/site-packages/IPython/__pycache__/__init__.cpython-310.pyc
ADDED
Binary file (5.43 kB). View file
|
|
.venv/Lib/site-packages/IPython/__pycache__/__main__.cpython-310.pyc
ADDED
Binary file (274 Bytes). View file
|
|
.venv/Lib/site-packages/IPython/__pycache__/conftest.cpython-310.pyc
ADDED
Binary file (2.53 kB). View file
|
|
.venv/Lib/site-packages/IPython/__pycache__/consoleapp.cpython-310.pyc
ADDED
Binary file (512 Bytes). View file
|
|
.venv/Lib/site-packages/IPython/__pycache__/display.cpython-310.pyc
ADDED
Binary file (897 Bytes). View file
|
|
.venv/Lib/site-packages/IPython/__pycache__/paths.cpython-310.pyc
ADDED
Binary file (3.65 kB). View file
|
|
.venv/Lib/site-packages/IPython/conftest.py
ADDED
@@ -0,0 +1,87 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import builtins
|
2 |
+
import inspect
|
3 |
+
import os
|
4 |
+
import pathlib
|
5 |
+
import shutil
|
6 |
+
import sys
|
7 |
+
import types
|
8 |
+
|
9 |
+
import pytest
|
10 |
+
|
11 |
+
# Must register before it gets imported
|
12 |
+
pytest.register_assert_rewrite("IPython.testing.tools")
|
13 |
+
|
14 |
+
from .testing import tools
|
15 |
+
|
16 |
+
|
17 |
+
def pytest_collection_modifyitems(items):
|
18 |
+
"""This function is automatically run by pytest passing all collected test
|
19 |
+
functions.
|
20 |
+
|
21 |
+
We use it to add asyncio marker to all async tests and assert we don't use
|
22 |
+
test functions that are async generators which wouldn't make sense.
|
23 |
+
"""
|
24 |
+
for item in items:
|
25 |
+
if inspect.iscoroutinefunction(item.obj):
|
26 |
+
item.add_marker("asyncio")
|
27 |
+
assert not inspect.isasyncgenfunction(item.obj)
|
28 |
+
|
29 |
+
|
30 |
+
def get_ipython():
|
31 |
+
from .terminal.interactiveshell import TerminalInteractiveShell
|
32 |
+
if TerminalInteractiveShell._instance:
|
33 |
+
return TerminalInteractiveShell.instance()
|
34 |
+
|
35 |
+
config = tools.default_config()
|
36 |
+
config.TerminalInteractiveShell.simple_prompt = True
|
37 |
+
|
38 |
+
# Create and initialize our test-friendly IPython instance.
|
39 |
+
shell = TerminalInteractiveShell.instance(config=config)
|
40 |
+
return shell
|
41 |
+
|
42 |
+
|
43 |
+
@pytest.fixture(scope='session', autouse=True)
|
44 |
+
def work_path():
|
45 |
+
path = pathlib.Path("./tmp-ipython-pytest-profiledir")
|
46 |
+
os.environ["IPYTHONDIR"] = str(path.absolute())
|
47 |
+
if path.exists():
|
48 |
+
raise ValueError('IPython dir temporary path already exists ! Did previous test run exit successfully ?')
|
49 |
+
path.mkdir()
|
50 |
+
yield
|
51 |
+
shutil.rmtree(str(path.resolve()))
|
52 |
+
|
53 |
+
|
54 |
+
def nopage(strng, start=0, screen_lines=0, pager_cmd=None):
|
55 |
+
if isinstance(strng, dict):
|
56 |
+
strng = strng.get("text/plain", "")
|
57 |
+
print(strng)
|
58 |
+
|
59 |
+
|
60 |
+
def xsys(self, cmd):
|
61 |
+
"""Replace the default system call with a capturing one for doctest.
|
62 |
+
"""
|
63 |
+
# We use getoutput, but we need to strip it because pexpect captures
|
64 |
+
# the trailing newline differently from commands.getoutput
|
65 |
+
print(self.getoutput(cmd, split=False, depth=1).rstrip(), end="", file=sys.stdout)
|
66 |
+
sys.stdout.flush()
|
67 |
+
|
68 |
+
|
69 |
+
# for things to work correctly we would need this as a session fixture;
|
70 |
+
# unfortunately this will fail on some test that get executed as _collection_
|
71 |
+
# time (before the fixture run), in particular parametrized test that contain
|
72 |
+
# yields. so for now execute at import time.
|
73 |
+
#@pytest.fixture(autouse=True, scope='session')
|
74 |
+
def inject():
|
75 |
+
|
76 |
+
builtins.get_ipython = get_ipython
|
77 |
+
builtins._ip = get_ipython()
|
78 |
+
builtins.ip = get_ipython()
|
79 |
+
builtins.ip.system = types.MethodType(xsys, ip)
|
80 |
+
builtins.ip.builtin_trap.activate()
|
81 |
+
from .core import page
|
82 |
+
|
83 |
+
page.pager_page = nopage
|
84 |
+
# yield
|
85 |
+
|
86 |
+
|
87 |
+
inject()
|
.venv/Lib/site-packages/IPython/consoleapp.py
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
"""
|
2 |
+
Shim to maintain backwards compatibility with old IPython.consoleapp imports.
|
3 |
+
"""
|
4 |
+
# Copyright (c) IPython Development Team.
|
5 |
+
# Distributed under the terms of the Modified BSD License.
|
6 |
+
|
7 |
+
from warnings import warn
|
8 |
+
|
9 |
+
warn("The `IPython.consoleapp` package has been deprecated since IPython 4.0."
|
10 |
+
"You should import from jupyter_client.consoleapp instead.", stacklevel=2)
|
11 |
+
|
12 |
+
from jupyter_client.consoleapp import *
|
.venv/Lib/site-packages/IPython/core/__init__.py
ADDED
File without changes
|
.venv/Lib/site-packages/IPython/core/__pycache__/__init__.cpython-310.pyc
ADDED
Binary file (173 Bytes). View file
|
|
.venv/Lib/site-packages/IPython/core/__pycache__/alias.cpython-310.pyc
ADDED
Binary file (7 kB). View file
|
|
.venv/Lib/site-packages/IPython/core/__pycache__/application.cpython-310.pyc
ADDED
Binary file (14.2 kB). View file
|
|
.venv/Lib/site-packages/IPython/core/__pycache__/async_helpers.cpython-310.pyc
ADDED
Binary file (4.95 kB). View file
|
|
.venv/Lib/site-packages/IPython/core/__pycache__/autocall.cpython-310.pyc
ADDED
Binary file (2.1 kB). View file
|
|
.venv/Lib/site-packages/IPython/core/__pycache__/builtin_trap.cpython-310.pyc
ADDED
Binary file (2.87 kB). View file
|
|
.venv/Lib/site-packages/IPython/core/__pycache__/compilerop.cpython-310.pyc
ADDED
Binary file (5.81 kB). View file
|
|
.venv/Lib/site-packages/IPython/core/__pycache__/completer.cpython-310.pyc
ADDED
Binary file (91.1 kB). View file
|
|
.venv/Lib/site-packages/IPython/core/__pycache__/completerlib.cpython-310.pyc
ADDED
Binary file (9.25 kB). View file
|
|
.venv/Lib/site-packages/IPython/core/__pycache__/crashhandler.cpython-310.pyc
ADDED
Binary file (6.69 kB). View file
|
|
.venv/Lib/site-packages/IPython/core/__pycache__/debugger.cpython-310.pyc
ADDED
Binary file (25.4 kB). View file
|
|
.venv/Lib/site-packages/IPython/core/__pycache__/display.cpython-310.pyc
ADDED
Binary file (38.9 kB). View file
|
|
.venv/Lib/site-packages/IPython/core/__pycache__/display_functions.cpython-310.pyc
ADDED
Binary file (11.9 kB). View file
|
|
.venv/Lib/site-packages/IPython/core/__pycache__/display_trap.cpython-310.pyc
ADDED
Binary file (1.75 kB). View file
|
|
.venv/Lib/site-packages/IPython/core/__pycache__/displayhook.cpython-310.pyc
ADDED
Binary file (9.83 kB). View file
|
|