dlai-grader 1.21.0__tar.gz → 1.21.1__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.

Potentially problematic release.


This version of dlai-grader might be problematic. Click here for more details.

Files changed (21) hide show
  1. {dlai_grader-1.21.0 → dlai_grader-1.21.1}/PKG-INFO +1 -1
  2. {dlai_grader-1.21.0 → dlai_grader-1.21.1}/dlai_grader/__init__.py +1 -1
  3. {dlai_grader-1.21.0 → dlai_grader-1.21.1}/dlai_grader/compiler.py +8 -2
  4. {dlai_grader-1.21.0 → dlai_grader-1.21.1}/dlai_grader.egg-info/PKG-INFO +1 -1
  5. {dlai_grader-1.21.0 → dlai_grader-1.21.1}/setup.py +1 -1
  6. {dlai_grader-1.21.0 → dlai_grader-1.21.1}/LICENSE +0 -0
  7. {dlai_grader-1.21.0 → dlai_grader-1.21.1}/README.md +0 -0
  8. {dlai_grader-1.21.0 → dlai_grader-1.21.1}/dlai_grader/cli.py +0 -0
  9. {dlai_grader-1.21.0 → dlai_grader-1.21.1}/dlai_grader/config.py +0 -0
  10. {dlai_grader-1.21.0 → dlai_grader-1.21.1}/dlai_grader/grading.py +0 -0
  11. {dlai_grader-1.21.0 → dlai_grader-1.21.1}/dlai_grader/io.py +0 -0
  12. {dlai_grader-1.21.0 → dlai_grader-1.21.1}/dlai_grader/notebook.py +0 -0
  13. {dlai_grader-1.21.0 → dlai_grader-1.21.1}/dlai_grader/py.typed +0 -0
  14. {dlai_grader-1.21.0 → dlai_grader-1.21.1}/dlai_grader/templates.py +0 -0
  15. {dlai_grader-1.21.0 → dlai_grader-1.21.1}/dlai_grader/types.py +0 -0
  16. {dlai_grader-1.21.0 → dlai_grader-1.21.1}/dlai_grader.egg-info/SOURCES.txt +0 -0
  17. {dlai_grader-1.21.0 → dlai_grader-1.21.1}/dlai_grader.egg-info/dependency_links.txt +0 -0
  18. {dlai_grader-1.21.0 → dlai_grader-1.21.1}/dlai_grader.egg-info/entry_points.txt +0 -0
  19. {dlai_grader-1.21.0 → dlai_grader-1.21.1}/dlai_grader.egg-info/requires.txt +0 -0
  20. {dlai_grader-1.21.0 → dlai_grader-1.21.1}/dlai_grader.egg-info/top_level.txt +0 -0
  21. {dlai_grader-1.21.0 → dlai_grader-1.21.1}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dlai-grader
3
- Version: 1.21.0
3
+ Version: 1.21.1
4
4
  Summary: Grading utilities for DLAI courses
5
5
  Home-page: https://github.com/https-deeplearning-ai/grader
6
6
  Author: Andres Zarta
@@ -6,6 +6,6 @@ from . import grading
6
6
  from . import types
7
7
 
8
8
 
9
- __version__ = "1.21.0"
9
+ __version__ = "1.21.1"
10
10
  __author__ = "Andres Zarta"
11
11
  __credits__ = "DeepLearning.AI"
@@ -40,6 +40,7 @@ def compile_partial_module(
40
40
  notebook: NotebookNode,
41
41
  module_name: str,
42
42
  verbose: bool = True,
43
+ exit_on_error: bool = False,
43
44
  ) -> ModuleType:
44
45
  """Iterates over the code cells of a notebook and includes the ones that run to the compiled module.
45
46
  Args:
@@ -60,10 +61,15 @@ def compile_partial_module(
60
61
  exec(compiled_code, module.__dict__)
61
62
 
62
63
  except Exception as e:
63
- if verbose:
64
+ if exit_on_error:
64
65
  print(
65
66
  f"Error during execution of cell. Aborting full compilation.\n\nContents:\n\n{cell_code}\n\nException:\n\n{e}\n"
66
67
  )
67
- break
68
+ break
69
+
70
+ print(
71
+ f"Error during execution of cell but kept going.\n\nContents:\n\n{cell_code}\n\nException:\n\n{e}\n"
72
+ )
73
+ continue
68
74
 
69
75
  return module
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dlai-grader
3
- Version: 1.21.0
3
+ Version: 1.21.1
4
4
  Summary: Grading utilities for DLAI courses
5
5
  Home-page: https://github.com/https-deeplearning-ai/grader
6
6
  Author: Andres Zarta
@@ -5,7 +5,7 @@ with open("README.md", "r") as f:
5
5
 
6
6
  setup(
7
7
  name="dlai-grader",
8
- version="1.21.0",
8
+ version="1.21.1",
9
9
  description="Grading utilities for DLAI courses",
10
10
  url="https://github.com/https-deeplearning-ai/grader",
11
11
  author="Andres Zarta",
File without changes
File without changes
File without changes