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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: nbdevAuto
3
- Version: 0.0.100
3
+ Version: 0.0.102
4
4
  Summary: automating nbdev
5
5
  Home-page: https://github.com/bthek1/nbdevAuto
6
6
  Author: Benedict Thekkel
@@ -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,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: nbdevAuto
3
- Version: 0.0.100
3
+ Version: 0.0.102
4
4
  Summary: automating nbdev
5
5
  Home-page: https://github.com/bthek1/nbdevAuto
6
6
  Author: Benedict Thekkel
@@ -8,6 +8,7 @@ nbdevAuto/_modidx.py
8
8
  nbdevAuto/automate.py
9
9
  nbdevAuto/core.py
10
10
  nbdevAuto/functions.py
11
+ nbdevAuto/pdf.py
11
12
  nbdevAuto.egg-info/PKG-INFO
12
13
  nbdevAuto.egg-info/SOURCES.txt
13
14
  nbdevAuto.egg-info/dependency_links.txt
@@ -1,7 +1,7 @@
1
1
  [DEFAULT]
2
2
  repo = nbdevAuto
3
3
  lib_name = nbdevAuto
4
- version = 0.0.100
4
+ version = 0.0.102
5
5
  min_python = 3.7
6
6
  license = apache2
7
7
  black_formatting = False
@@ -1 +0,0 @@
1
- __version__ = "0.0.100"
File without changes
File without changes
File without changes
File without changes
File without changes