nbdevAuto 0.0.100__tar.gz → 0.0.102__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {nbdevAuto-0.0.100/nbdevAuto.egg-info → nbdevAuto-0.0.102}/PKG-INFO +1 -1
- nbdevAuto-0.0.102/nbdevAuto/__init__.py +1 -0
- {nbdevAuto-0.0.100 → nbdevAuto-0.0.102}/nbdevAuto/_modidx.py +3 -1
- nbdevAuto-0.0.102/nbdevAuto/pdf.py +29 -0
- {nbdevAuto-0.0.100 → nbdevAuto-0.0.102/nbdevAuto.egg-info}/PKG-INFO +1 -1
- {nbdevAuto-0.0.100 → nbdevAuto-0.0.102}/nbdevAuto.egg-info/SOURCES.txt +1 -0
- {nbdevAuto-0.0.100 → nbdevAuto-0.0.102}/settings.ini +1 -1
- nbdevAuto-0.0.100/nbdevAuto/__init__.py +0 -1
- {nbdevAuto-0.0.100 → nbdevAuto-0.0.102}/LICENSE +0 -0
- {nbdevAuto-0.0.100 → nbdevAuto-0.0.102}/MANIFEST.in +0 -0
- {nbdevAuto-0.0.100 → nbdevAuto-0.0.102}/README.md +0 -0
- {nbdevAuto-0.0.100 → nbdevAuto-0.0.102}/nbdevAuto/automate.py +0 -0
- {nbdevAuto-0.0.100 → nbdevAuto-0.0.102}/nbdevAuto/core.py +0 -0
- {nbdevAuto-0.0.100 → nbdevAuto-0.0.102}/nbdevAuto/functions.py +0 -0
- {nbdevAuto-0.0.100 → nbdevAuto-0.0.102}/nbdevAuto.egg-info/dependency_links.txt +0 -0
- {nbdevAuto-0.0.100 → nbdevAuto-0.0.102}/nbdevAuto.egg-info/entry_points.txt +0 -0
- {nbdevAuto-0.0.100 → nbdevAuto-0.0.102}/nbdevAuto.egg-info/not-zip-safe +0 -0
- {nbdevAuto-0.0.100 → nbdevAuto-0.0.102}/nbdevAuto.egg-info/requires.txt +0 -0
- {nbdevAuto-0.0.100 → nbdevAuto-0.0.102}/nbdevAuto.egg-info/top_level.txt +0 -0
- {nbdevAuto-0.0.100 → nbdevAuto-0.0.102}/setup.cfg +0 -0
- {nbdevAuto-0.0.100 → nbdevAuto-0.0.102}/setup.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.0.102"
|
|
@@ -33,4 +33,6 @@ d = { 'settings': { 'branch': 'main',
|
|
|
33
33
|
'nbdevAuto/functions.py'),
|
|
34
34
|
'nbdevAuto.functions.read_from_file': ('functions.html#read_from_file', 'nbdevAuto/functions.py'),
|
|
35
35
|
'nbdevAuto.functions.resize_pics': ('functions.html#resize_pics', 'nbdevAuto/functions.py'),
|
|
36
|
-
'nbdevAuto.functions.verify_pics': ('functions.html#verify_pics', 'nbdevAuto/functions.py')}
|
|
36
|
+
'nbdevAuto.functions.verify_pics': ('functions.html#verify_pics', 'nbdevAuto/functions.py')},
|
|
37
|
+
'nbdevAuto.pdf': { 'nbdevAuto.pdf.display_pdf_slides': ('pdf_reader.html#display_pdf_slides', 'nbdevAuto/pdf.py'),
|
|
38
|
+
'nbdevAuto.pdf.show_slides': ('pdf_reader.html#show_slides', 'nbdevAuto/pdf.py')}}}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# AUTOGENERATED! DO NOT EDIT! File to edit: ../nbs/02_PDF_reader.ipynb.
|
|
2
|
+
|
|
3
|
+
# %% auto 0
|
|
4
|
+
__all__ = ['display_pdf_slides', 'show_slides']
|
|
5
|
+
|
|
6
|
+
# %% ../nbs/02_PDF_reader.ipynb 4
|
|
7
|
+
#|code-fold: true
|
|
8
|
+
def display_pdf_slides(pdf_path):
|
|
9
|
+
import matplotlib.pyplot as plt
|
|
10
|
+
# Convert PDF to a list of images
|
|
11
|
+
images = convert_from_path(pdf_path)
|
|
12
|
+
|
|
13
|
+
# Display each image using Matplotlib
|
|
14
|
+
|
|
15
|
+
# %% ../nbs/02_PDF_reader.ipynb 5
|
|
16
|
+
#|code-fold: true
|
|
17
|
+
def show_slides(images, slide, height = 6, width = 4, end = ''):
|
|
18
|
+
from pdf2image import convert_from_path
|
|
19
|
+
import matplotlib.pyplot as plt
|
|
20
|
+
|
|
21
|
+
if end == '' or end < slide:
|
|
22
|
+
end = slide
|
|
23
|
+
|
|
24
|
+
for i, image in enumerate(images[slide:end+1]):
|
|
25
|
+
plt.figure(figsize=(height, width))
|
|
26
|
+
plt.imshow(image)
|
|
27
|
+
plt.title(f'Slide {i + 1}')
|
|
28
|
+
plt.axis('off')
|
|
29
|
+
plt.show()
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.0.100"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|