Added basic Jupyter Note support

This commit is contained in:
2020-09-24 20:16:04 +02:00
parent eeeed0f110
commit 8fefce1628
10 changed files with 84 additions and 1 deletions
+2
View File
@@ -115,6 +115,7 @@ class Sheerka(Concept):
self.last_executions = []
self.last_return_values = []
self.execution_count = 0
@property
def resolved_concepts_by_first_keyword(self):
@@ -436,6 +437,7 @@ class Sheerka(Concept):
# with open(CONCEPTS_FILE, "a") as f:
# f.write(text + "\n")
self.execution_count += 1
self._last_execution = execution_context
if len(self.last_executions) == self.MAX_EXECUTION_HISTORY:
del self.last_executions[0]