memory-graph 0.3.22__tar.gz → 0.3.24__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.
Files changed (288) hide show
  1. {memory_graph-0.3.22/memory_graph.egg-info → memory_graph-0.3.24}/PKG-INFO +137 -50
  2. {memory_graph-0.3.22 → memory_graph-0.3.24}/README.md +136 -49
  3. {memory_graph-0.3.22 → memory_graph-0.3.24}/images/add_one.gv +20 -20
  4. memory_graph-0.3.24/images/add_one.png +0 -0
  5. {memory_graph-0.3.22 → memory_graph-0.3.24}/images/avltree_dir.gv +6 -6
  6. memory_graph-0.3.24/images/avltree_dir.png +0 -0
  7. memory_graph-0.3.24/images/avltree_fail.gv +22 -0
  8. memory_graph-0.3.24/images/avltree_fail.png +0 -0
  9. {memory_graph-0.3.22 → memory_graph-0.3.24}/images/avltree_key_value.gv +13 -13
  10. memory_graph-0.3.24/images/avltree_key_value.png +0 -0
  11. {memory_graph-0.3.22 → memory_graph-0.3.24}/images/avltree_leaf.gv +6 -6
  12. memory_graph-0.3.24/images/avltree_leaf.png +0 -0
  13. {memory_graph-0.3.22 → memory_graph-0.3.24}/images/avltree_linear.gv +13 -13
  14. memory_graph-0.3.24/images/avltree_linear.png +0 -0
  15. {memory_graph-0.3.22 → memory_graph-0.3.24}/images/avltree_table.gv +13 -13
  16. memory_graph-0.3.24/images/avltree_table.png +0 -0
  17. {memory_graph-0.3.22 → memory_graph-0.3.24}/images/bin_tree.gv +39 -39
  18. memory_graph-0.3.24/images/bin_tree.png +0 -0
  19. {memory_graph-0.3.22 → memory_graph-0.3.24}/images/copies.gv +21 -21
  20. memory_graph-0.3.24/images/copies.png +0 -0
  21. {memory_graph-0.3.22 → memory_graph-0.3.24}/images/copy_method.gv +17 -17
  22. memory_graph-0.3.24/images/copy_method.png +0 -0
  23. {memory_graph-0.3.22 → memory_graph-0.3.24}/images/create_images.sh +1 -0
  24. memory_graph-0.3.24/images/debugging.gif +0 -0
  25. {memory_graph-0.3.22 → memory_graph-0.3.24}/images/debugging01.gv +9 -9
  26. memory_graph-0.3.24/images/debugging01.png +0 -0
  27. {memory_graph-0.3.22 → memory_graph-0.3.24}/images/debugging02.gv +12 -12
  28. memory_graph-0.3.24/images/debugging02.png +0 -0
  29. {memory_graph-0.3.22 → memory_graph-0.3.24}/images/debugging03.gv +14 -14
  30. memory_graph-0.3.24/images/debugging03.png +0 -0
  31. {memory_graph-0.3.22 → memory_graph-0.3.24}/images/debugging04.gv +16 -16
  32. memory_graph-0.3.24/images/debugging04.png +0 -0
  33. {memory_graph-0.3.22 → memory_graph-0.3.24}/images/debugging05.gv +18 -18
  34. memory_graph-0.3.24/images/debugging05.png +0 -0
  35. {memory_graph-0.3.22 → memory_graph-0.3.24}/images/debugging06.gv +18 -18
  36. memory_graph-0.3.24/images/debugging06.png +0 -0
  37. memory_graph-0.3.24/images/depth.gv +178 -0
  38. memory_graph-0.3.24/images/depth.png +0 -0
  39. {memory_graph-0.3.22 → memory_graph-0.3.24}/images/extension_numpy.gv +31 -33
  40. memory_graph-0.3.24/images/extension_numpy.png +0 -0
  41. {memory_graph-0.3.22 → memory_graph-0.3.24}/images/extension_pandas.gv +9 -11
  42. memory_graph-0.3.24/images/extension_pandas.png +0 -0
  43. memory_graph-0.3.24/images/factorial.gif +0 -0
  44. memory_graph-0.3.24/images/factorial.py +16 -0
  45. memory_graph-0.3.24/images/factorial0.gv +15 -0
  46. memory_graph-0.3.24/images/factorial0.png +0 -0
  47. {memory_graph-0.3.22 → memory_graph-0.3.24}/images/factorial01.gv +4 -4
  48. {memory_graph-0.3.22 → memory_graph-0.3.24}/images/factorial02.gv +8 -8
  49. {memory_graph-0.3.22 → memory_graph-0.3.24}/images/factorial03.gv +11 -11
  50. {memory_graph-0.3.22 → memory_graph-0.3.24}/images/factorial04.gv +14 -14
  51. {memory_graph-0.3.22 → memory_graph-0.3.24}/images/factorial05.gv +14 -14
  52. {memory_graph-0.3.22 → memory_graph-0.3.24}/images/factorial06.gv +11 -11
  53. {memory_graph-0.3.22 → memory_graph-0.3.24}/images/factorial07.gv +8 -8
  54. memory_graph-0.3.24/images/factorial1.gv +22 -0
  55. memory_graph-0.3.24/images/factorial1.png +0 -0
  56. memory_graph-0.3.24/images/factorial2.gv +28 -0
  57. memory_graph-0.3.24/images/factorial2.png +0 -0
  58. memory_graph-0.3.24/images/factorial3.gv +34 -0
  59. memory_graph-0.3.24/images/factorial3.png +0 -0
  60. memory_graph-0.3.24/images/factorial4.gv +35 -0
  61. memory_graph-0.3.24/images/factorial4.png +0 -0
  62. memory_graph-0.3.24/images/factorial5.gv +29 -0
  63. memory_graph-0.3.24/images/factorial5.png +0 -0
  64. memory_graph-0.3.24/images/factorial6.gv +23 -0
  65. memory_graph-0.3.24/images/factorial6.png +0 -0
  66. {memory_graph-0.3.22 → memory_graph-0.3.24}/images/hash_set.gv +30 -30
  67. memory_graph-0.3.24/images/hash_set.png +0 -0
  68. memory_graph-0.3.24/images/hidden_edges.gv +37 -0
  69. memory_graph-0.3.24/images/hidden_edges.png +0 -0
  70. memory_graph-0.3.24/images/hidden_edges.py +8 -0
  71. memory_graph-0.3.24/images/hidden_edges.py~ +9 -0
  72. {memory_graph-0.3.22 → memory_graph-0.3.24}/images/highlight.gv +17 -23
  73. memory_graph-0.3.24/images/highlight.png +0 -0
  74. {memory_graph-0.3.22 → memory_graph-0.3.24}/images/immutable1.gv +5 -5
  75. memory_graph-0.3.24/images/immutable1.png +0 -0
  76. {memory_graph-0.3.22 → memory_graph-0.3.24}/images/immutable2.gv +7 -7
  77. memory_graph-0.3.24/images/immutable2.png +0 -0
  78. memory_graph-0.3.24/images/introspect_depth.gv +178 -0
  79. memory_graph-0.3.24/images/introspect_depth.png +0 -0
  80. memory_graph-0.3.24/images/introspect_depth.py +43 -0
  81. memory_graph-0.3.24/images/introspect_depth.py~ +26 -0
  82. {memory_graph-0.3.22 → memory_graph-0.3.24}/images/linked_list.gv +24 -24
  83. memory_graph-0.3.24/images/linked_list.png +0 -0
  84. {memory_graph-0.3.22 → memory_graph-0.3.24}/images/many_types.gv +13 -13
  85. memory_graph-0.3.24/images/many_types.png +0 -0
  86. memory_graph-0.3.24/images/memory_graph.gv +178 -0
  87. memory_graph-0.3.24/images/memory_graph.pdf +0 -0
  88. {memory_graph-0.3.22 → memory_graph-0.3.24}/images/mutable1.gv +5 -5
  89. memory_graph-0.3.24/images/mutable1.png +0 -0
  90. {memory_graph-0.3.22 → memory_graph-0.3.24}/images/mutable2.gv +5 -5
  91. memory_graph-0.3.24/images/mutable2.png +0 -0
  92. {memory_graph-0.3.22 → memory_graph-0.3.24}/images/not_node_types1.gv +7 -7
  93. memory_graph-0.3.24/images/not_node_types1.png +0 -0
  94. {memory_graph-0.3.22 → memory_graph-0.3.24}/images/not_node_types2.gv +15 -15
  95. memory_graph-0.3.24/images/not_node_types2.png +0 -0
  96. memory_graph-0.3.24/images/power_set.gif +0 -0
  97. {memory_graph-0.3.22 → memory_graph-0.3.24}/images/power_set.py +4 -6
  98. memory_graph-0.3.24/images/power_set0.gv +38 -0
  99. memory_graph-0.3.24/images/power_set0.png +0 -0
  100. {memory_graph-0.3.22 → memory_graph-0.3.24}/images/power_set1.gv +21 -21
  101. memory_graph-0.3.24/images/power_set1.png +0 -0
  102. {memory_graph-0.3.22 → memory_graph-0.3.24}/images/power_set10.gv +42 -42
  103. memory_graph-0.3.24/images/power_set10.png +0 -0
  104. memory_graph-0.3.22/images/power_set12.gv → memory_graph-0.3.24/images/power_set11.gv +38 -38
  105. memory_graph-0.3.24/images/power_set11.png +0 -0
  106. memory_graph-0.3.22/images/power_set11.gv → memory_graph-0.3.24/images/power_set12.gv +38 -38
  107. memory_graph-0.3.24/images/power_set12.png +0 -0
  108. {memory_graph-0.3.22 → memory_graph-0.3.24}/images/power_set13.gv +42 -42
  109. memory_graph-0.3.24/images/power_set13.png +0 -0
  110. {memory_graph-0.3.22 → memory_graph-0.3.24}/images/power_set14.gv +48 -48
  111. memory_graph-0.3.24/images/power_set14.png +0 -0
  112. {memory_graph-0.3.22 → memory_graph-0.3.24}/images/power_set15.gv +50 -50
  113. memory_graph-0.3.24/images/power_set15.png +0 -0
  114. memory_graph-0.3.22/images/power_set17.gv → memory_graph-0.3.24/images/power_set16.gv +48 -48
  115. memory_graph-0.3.24/images/power_set16.png +0 -0
  116. memory_graph-0.3.22/images/power_set16.gv → memory_graph-0.3.24/images/power_set17.gv +48 -48
  117. memory_graph-0.3.24/images/power_set17.png +0 -0
  118. {memory_graph-0.3.22 → memory_graph-0.3.24}/images/power_set18.gv +52 -52
  119. memory_graph-0.3.24/images/power_set18.png +0 -0
  120. {memory_graph-0.3.22 → memory_graph-0.3.24}/images/power_set19.gv +54 -54
  121. memory_graph-0.3.24/images/power_set19.png +0 -0
  122. {memory_graph-0.3.22 → memory_graph-0.3.24}/images/power_set2.gv +27 -27
  123. memory_graph-0.3.24/images/power_set2.png +0 -0
  124. {memory_graph-0.3.22 → memory_graph-0.3.24}/images/power_set20.gv +50 -50
  125. memory_graph-0.3.24/images/power_set20.png +0 -0
  126. {memory_graph-0.3.22 → memory_graph-0.3.24}/images/power_set21.gv +44 -44
  127. memory_graph-0.3.24/images/power_set21.png +0 -0
  128. {memory_graph-0.3.22 → memory_graph-0.3.24}/images/power_set22.gv +38 -38
  129. memory_graph-0.3.24/images/power_set22.png +0 -0
  130. memory_graph-0.3.24/images/power_set23.gv +93 -0
  131. memory_graph-0.3.24/images/power_set23.png +0 -0
  132. {memory_graph-0.3.22 → memory_graph-0.3.24}/images/power_set3.gv +33 -33
  133. memory_graph-0.3.24/images/power_set3.png +0 -0
  134. {memory_graph-0.3.22 → memory_graph-0.3.24}/images/power_set4.gv +39 -39
  135. memory_graph-0.3.24/images/power_set4.png +0 -0
  136. {memory_graph-0.3.22 → memory_graph-0.3.24}/images/power_set5.gv +41 -41
  137. memory_graph-0.3.24/images/power_set5.png +0 -0
  138. {memory_graph-0.3.22 → memory_graph-0.3.24}/images/power_set6.gv +38 -38
  139. memory_graph-0.3.24/images/power_set6.png +0 -0
  140. {memory_graph-0.3.22 → memory_graph-0.3.24}/images/power_set7.gv +38 -38
  141. memory_graph-0.3.24/images/power_set7.png +0 -0
  142. {memory_graph-0.3.22 → memory_graph-0.3.24}/images/power_set8.gv +44 -44
  143. memory_graph-0.3.24/images/power_set8.png +0 -0
  144. {memory_graph-0.3.22 → memory_graph-0.3.24}/images/power_set9.gv +46 -46
  145. memory_graph-0.3.24/images/power_set9.png +0 -0
  146. {memory_graph-0.3.22 → memory_graph-0.3.24}/images/rebinding1.gv +5 -5
  147. memory_graph-0.3.24/images/rebinding1.png +0 -0
  148. {memory_graph-0.3.22 → memory_graph-0.3.24}/images/rebinding2.gv +7 -7
  149. memory_graph-0.3.24/images/rebinding2.png +0 -0
  150. {memory_graph-0.3.22 → memory_graph-0.3.24}/memory_graph/__init__.py +20 -5
  151. {memory_graph-0.3.22 → memory_graph-0.3.24}/memory_graph/config.py +7 -3
  152. {memory_graph-0.3.22 → memory_graph-0.3.24}/memory_graph/config_default.py +19 -9
  153. {memory_graph-0.3.22 → memory_graph-0.3.24}/memory_graph/memory_to_nodes.py +10 -0
  154. {memory_graph-0.3.22 → memory_graph-0.3.24}/memory_graph/utils.py +4 -2
  155. {memory_graph-0.3.22 → memory_graph-0.3.24/memory_graph.egg-info}/PKG-INFO +137 -50
  156. {memory_graph-0.3.22 → memory_graph-0.3.24}/memory_graph.egg-info/SOURCES.txt +29 -7
  157. {memory_graph-0.3.22 → memory_graph-0.3.24}/setup.py +1 -1
  158. memory_graph-0.3.22/images/add_one.png +0 -0
  159. memory_graph-0.3.22/images/avltree_dir.png +0 -0
  160. memory_graph-0.3.22/images/avltree_fail.gv +0 -26
  161. memory_graph-0.3.22/images/avltree_fail.png +0 -0
  162. memory_graph-0.3.22/images/avltree_key_value.png +0 -0
  163. memory_graph-0.3.22/images/avltree_leaf.png +0 -0
  164. memory_graph-0.3.22/images/avltree_linear.png +0 -0
  165. memory_graph-0.3.22/images/avltree_table.png +0 -0
  166. memory_graph-0.3.22/images/bin_tree.png +0 -0
  167. memory_graph-0.3.22/images/copies.png +0 -0
  168. memory_graph-0.3.22/images/copy_method.png +0 -0
  169. memory_graph-0.3.22/images/debugging.gif +0 -0
  170. memory_graph-0.3.22/images/debugging01.png +0 -0
  171. memory_graph-0.3.22/images/debugging02.png +0 -0
  172. memory_graph-0.3.22/images/debugging03.png +0 -0
  173. memory_graph-0.3.22/images/debugging04.png +0 -0
  174. memory_graph-0.3.22/images/debugging05.png +0 -0
  175. memory_graph-0.3.22/images/debugging06.png +0 -0
  176. memory_graph-0.3.22/images/extension_numpy.png +0 -0
  177. memory_graph-0.3.22/images/extension_pandas.png +0 -0
  178. memory_graph-0.3.22/images/factorial.gif +0 -0
  179. memory_graph-0.3.22/images/factorial.py +0 -24
  180. memory_graph-0.3.22/images/factorial01.png +0 -0
  181. memory_graph-0.3.22/images/factorial02.png +0 -0
  182. memory_graph-0.3.22/images/factorial03.png +0 -0
  183. memory_graph-0.3.22/images/factorial04.png +0 -0
  184. memory_graph-0.3.22/images/factorial05.png +0 -0
  185. memory_graph-0.3.22/images/factorial06.png +0 -0
  186. memory_graph-0.3.22/images/factorial07.png +0 -0
  187. memory_graph-0.3.22/images/hash_set.png +0 -0
  188. memory_graph-0.3.22/images/highlight.png +0 -0
  189. memory_graph-0.3.22/images/immutable1.png +0 -0
  190. memory_graph-0.3.22/images/immutable2.png +0 -0
  191. memory_graph-0.3.22/images/linked_list.png +0 -0
  192. memory_graph-0.3.22/images/many_types.png +0 -0
  193. memory_graph-0.3.22/images/memory_graph.pdf +0 -0
  194. memory_graph-0.3.22/images/mutable1.png +0 -0
  195. memory_graph-0.3.22/images/mutable2.png +0 -0
  196. memory_graph-0.3.22/images/not_node_types1.png +0 -0
  197. memory_graph-0.3.22/images/not_node_types2.png +0 -0
  198. memory_graph-0.3.22/images/power_set.gif +0 -0
  199. memory_graph-0.3.22/images/power_set1.png +0 -0
  200. memory_graph-0.3.22/images/power_set10.png +0 -0
  201. memory_graph-0.3.22/images/power_set11.png +0 -0
  202. memory_graph-0.3.22/images/power_set12.png +0 -0
  203. memory_graph-0.3.22/images/power_set13.png +0 -0
  204. memory_graph-0.3.22/images/power_set14.png +0 -0
  205. memory_graph-0.3.22/images/power_set15.png +0 -0
  206. memory_graph-0.3.22/images/power_set16.png +0 -0
  207. memory_graph-0.3.22/images/power_set17.png +0 -0
  208. memory_graph-0.3.22/images/power_set18.png +0 -0
  209. memory_graph-0.3.22/images/power_set19.png +0 -0
  210. memory_graph-0.3.22/images/power_set2.png +0 -0
  211. memory_graph-0.3.22/images/power_set20.png +0 -0
  212. memory_graph-0.3.22/images/power_set21.png +0 -0
  213. memory_graph-0.3.22/images/power_set22.png +0 -0
  214. memory_graph-0.3.22/images/power_set3.png +0 -0
  215. memory_graph-0.3.22/images/power_set4.png +0 -0
  216. memory_graph-0.3.22/images/power_set5.png +0 -0
  217. memory_graph-0.3.22/images/power_set6.png +0 -0
  218. memory_graph-0.3.22/images/power_set7.png +0 -0
  219. memory_graph-0.3.22/images/power_set8.png +0 -0
  220. memory_graph-0.3.22/images/power_set9.png +0 -0
  221. memory_graph-0.3.22/images/rebinding1.png +0 -0
  222. memory_graph-0.3.22/images/rebinding2.png +0 -0
  223. {memory_graph-0.3.22 → memory_graph-0.3.24}/LICENSE.txt +0 -0
  224. {memory_graph-0.3.22 → memory_graph-0.3.24}/MANIFEST.in +0 -0
  225. {memory_graph-0.3.22 → memory_graph-0.3.24}/images/.ipynb_checkpoints/jupyter_example-checkpoint.ipynb +0 -0
  226. {memory_graph-0.3.22 → memory_graph-0.3.24}/images/add_one.py +0 -0
  227. {memory_graph-0.3.22 → memory_graph-0.3.24}/images/avltree.py +0 -0
  228. {memory_graph-0.3.22 → memory_graph-0.3.24}/images/avltree.py~ +0 -0
  229. {memory_graph-0.3.22 → memory_graph-0.3.24}/images/bin_tree.py +0 -0
  230. {memory_graph-0.3.22 → memory_graph-0.3.24}/images/bin_tree2.py +0 -0
  231. {memory_graph-0.3.22 → memory_graph-0.3.24}/images/bin_tree2.py~ +0 -0
  232. {memory_graph-0.3.22 → memory_graph-0.3.24}/images/copies.py +0 -0
  233. {memory_graph-0.3.22 → memory_graph-0.3.24}/images/copy_method.py +0 -0
  234. {memory_graph-0.3.22 → memory_graph-0.3.24}/images/create_gif.sh +0 -0
  235. {memory_graph-0.3.22 → memory_graph-0.3.24}/images/debug_vscode.png +0 -0
  236. {memory_graph-0.3.22 → memory_graph-0.3.24}/images/debugging.py +0 -0
  237. {memory_graph-0.3.22 → memory_graph-0.3.24}/images/extension_numpy.py +0 -0
  238. {memory_graph-0.3.22 → memory_graph-0.3.24}/images/extension_pandas.py +0 -0
  239. {memory_graph-0.3.22 → memory_graph-0.3.24}/images/hash_set.py +0 -0
  240. {memory_graph-0.3.22 → memory_graph-0.3.24}/images/highlight.py +0 -0
  241. {memory_graph-0.3.22 → memory_graph-0.3.24}/images/immutable.py +0 -0
  242. {memory_graph-0.3.22 → memory_graph-0.3.24}/images/ipython.png +0 -0
  243. {memory_graph-0.3.22 → memory_graph-0.3.24}/images/jupyter_example.png +0 -0
  244. {memory_graph-0.3.22 → memory_graph-0.3.24}/images/linked_list.py +0 -0
  245. {memory_graph-0.3.22 → memory_graph-0.3.24}/images/log.txt +0 -0
  246. {memory_graph-0.3.22 → memory_graph-0.3.24}/images/many_types.py +0 -0
  247. {memory_graph-0.3.22 → memory_graph-0.3.24}/images/memory_graph.gv.pdf +0 -0
  248. {memory_graph-0.3.22 → memory_graph-0.3.24}/images/mutable.py +0 -0
  249. {memory_graph-0.3.22 → memory_graph-0.3.24}/images/my_graph.gv +0 -0
  250. {memory_graph-0.3.22 → memory_graph-0.3.24}/images/my_graph.pdf +0 -0
  251. {memory_graph-0.3.22 → memory_graph-0.3.24}/images/name_rebinding.py +0 -0
  252. {memory_graph-0.3.22 → memory_graph-0.3.24}/images/not_node_types.py +0 -0
  253. {memory_graph-0.3.22 → memory_graph-0.3.24}/images/not_node_types.py~ +0 -0
  254. {memory_graph-0.3.22 → memory_graph-0.3.24}/images/pyodide.png +0 -0
  255. {memory_graph-0.3.22 → memory_graph-0.3.24}/images/uva.png +0 -0
  256. {memory_graph-0.3.22 → memory_graph-0.3.24}/install.txt +0 -0
  257. {memory_graph-0.3.22 → memory_graph-0.3.24}/memory_graph/call_stack.py +0 -0
  258. {memory_graph-0.3.22 → memory_graph-0.3.24}/memory_graph/config_helpers.py +0 -0
  259. {memory_graph-0.3.22 → memory_graph-0.3.24}/memory_graph/extension_numpy.py +0 -0
  260. {memory_graph-0.3.22 → memory_graph-0.3.24}/memory_graph/extension_pandas.py +0 -0
  261. {memory_graph-0.3.22 → memory_graph-0.3.24}/memory_graph/html_table.py +0 -0
  262. {memory_graph-0.3.22 → memory_graph-0.3.24}/memory_graph/list_view.py +0 -0
  263. {memory_graph-0.3.22 → memory_graph-0.3.24}/memory_graph/node_base.py +0 -0
  264. {memory_graph-0.3.22 → memory_graph-0.3.24}/memory_graph/node_key_value.py +0 -0
  265. {memory_graph-0.3.22 → memory_graph-0.3.24}/memory_graph/node_leaf.py +0 -0
  266. {memory_graph-0.3.22 → memory_graph-0.3.24}/memory_graph/node_linear.py +0 -0
  267. {memory_graph-0.3.22 → memory_graph-0.3.24}/memory_graph/node_table.py +0 -0
  268. {memory_graph-0.3.22 → memory_graph-0.3.24}/memory_graph/sequence.py +0 -0
  269. {memory_graph-0.3.22 → memory_graph-0.3.24}/memory_graph/slicer.py +0 -0
  270. {memory_graph-0.3.22 → memory_graph-0.3.24}/memory_graph/slices.py +0 -0
  271. {memory_graph-0.3.22 → memory_graph-0.3.24}/memory_graph/slices_iterator.py +0 -0
  272. {memory_graph-0.3.22 → memory_graph-0.3.24}/memory_graph/slices_table_iterator.py +0 -0
  273. {memory_graph-0.3.22 → memory_graph-0.3.24}/memory_graph/test.py +0 -0
  274. {memory_graph-0.3.22 → memory_graph-0.3.24}/memory_graph/test_max_graph_depth.py +0 -0
  275. {memory_graph-0.3.22 → memory_graph-0.3.24}/memory_graph/test_memory_graph.py +0 -0
  276. {memory_graph-0.3.22 → memory_graph-0.3.24}/memory_graph/test_memory_to_nodes.py +0 -0
  277. {memory_graph-0.3.22 → memory_graph-0.3.24}/memory_graph/test_sequence.py +0 -0
  278. {memory_graph-0.3.22 → memory_graph-0.3.24}/memory_graph/test_slicer.py +0 -0
  279. {memory_graph-0.3.22 → memory_graph-0.3.24}/memory_graph/test_slices.py +0 -0
  280. {memory_graph-0.3.22 → memory_graph-0.3.24}/memory_graph/test_slices_iterator.py +0 -0
  281. {memory_graph-0.3.22 → memory_graph-0.3.24}/memory_graph.egg-info/dependency_links.txt +0 -0
  282. {memory_graph-0.3.22 → memory_graph-0.3.24}/memory_graph.egg-info/requires.txt +0 -0
  283. {memory_graph-0.3.22 → memory_graph-0.3.24}/memory_graph.egg-info/top_level.txt +0 -0
  284. {memory_graph-0.3.22 → memory_graph-0.3.24}/setup.cfg +0 -0
  285. {memory_graph-0.3.22 → memory_graph-0.3.24}/src/auto_memory_graph.py +0 -0
  286. {memory_graph-0.3.22 → memory_graph-0.3.24}/src/jupyter_example.ipynb +0 -0
  287. {memory_graph-0.3.22 → memory_graph-0.3.24}/src/pyodide.html +0 -0
  288. {memory_graph-0.3.22 → memory_graph-0.3.24}/uml/memory_graph.uxf +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: memory_graph
3
- Version: 0.3.22
3
+ Version: 0.3.24
4
4
  Summary: Generate intuitive graphs of your Python data, great for debugging and understanding complex relationships.
5
5
  Home-page: https://github.com/bterwijn/memory_graph
6
6
  Author: Bas Terwijn
@@ -93,6 +93,13 @@ identical?: True
93
93
  ```
94
94
  A better way to understand what data is shared is to draw a graph of the data using the [memory_graph](https://pypi.org/project/memory-graph/) package.
95
95
 
96
+ # Videos #
97
+
98
+ | [![Mutability](https://img.youtube.com/vi/pvIJgHCaXhU/0.jpg)](https://www.youtube.com/watch?v=pvIJgHCaXhU) |
99
+ |:--:|
100
+ | [Mutability](https://www.youtube.com/watch?v=pvIJgHCaXhU) |
101
+
102
+
96
103
  # Chapters #
97
104
 
98
105
  [Python Data Model](#python-data-model)
@@ -101,7 +108,7 @@ A better way to understand what data is shared is to draw a graph of the data us
101
108
 
102
109
  [Debugging](#Debugging)
103
110
 
104
- [Datastructure Examples](#datastructure-examples)
111
+ [Data Structure Examples](#data-structure-examples)
105
112
 
106
113
  [Configuration](#configuration)
107
114
 
@@ -109,6 +116,8 @@ A better way to understand what data is shared is to draw a graph of the data us
109
116
 
110
117
  [Introspection](#introspection)
111
118
 
119
+ [Introspection Depth](#introspection-depth)
120
+
112
121
  [Jupyter Notebook](#jupyter-notebook)
113
122
 
114
123
  [ipython](#ipython)
@@ -130,14 +139,14 @@ Inspired by [Python Tutor](https://pythontutor.com/).
130
139
  ___
131
140
  ___
132
141
 
133
- ## Python Data Model ##
142
+ # Python Data Model #
134
143
  The [Python Data Model](https://docs.python.org/3/reference/datamodel.html) makes a distiction between immutable and mutable types:
135
144
 
136
145
  * **immutable**: bool, int, float, complex, str, tuple, bytes, frozenset
137
146
  * **mutable**: list, set, dict, classes, ... (most other types)
138
147
 
139
148
 
140
- ### Immutable Type ###
149
+ ## Immutable Type ##
141
150
  In the code below variable `a` and `b` both reference the same tuple value (4, 3, 2). A tuple is an immutable type and therefore when we change variable `b` its value **cannot** be mutated in place, and thus an automatic copy is made and `a` and `b` reference a different value afterwards.
142
151
 
143
152
  ```python
@@ -155,7 +164,7 @@ mg.render(locals(), 'immutable2.png')
155
164
  | immutable1.png | immutable2.png |
156
165
 
157
166
 
158
- ### Mutable Type ###
167
+ ## Mutable Type ##
159
168
  With mutable types the result is different. In the code below variable `a` and `b` both reference the same `list` value [4, 3, 2]. A `list` is a mutable type and therefore when we change variable `b` its value **can** be mutated in place and thus `a` and `b` both reference the same new value afterwards. Thus changing `b` also changes `a` and vice versa. Sometimes we want this but other times we don't and then we will have to make a copy ourselfs so that `a` and `b` are independent.
160
169
 
161
170
  ```python
@@ -174,7 +183,7 @@ mg.render(locals(), 'mutable2.png')
174
183
 
175
184
  One practical reason why Python makes the distinction between mutable and immutable types is that a value of a mutable type can be large, making it inefficient to copy each time we change it. Immutable values generally don't need to change as much, or are small making copying less of a concern.
176
185
 
177
- ### Copying ###
186
+ ## Copying ##
178
187
  Python offers three different "copy" options that we will demonstrate using a nested list:
179
188
 
180
189
  ```python
@@ -198,7 +207,7 @@ mg.show(locals())
198
207
  ![copies.png](https://raw.githubusercontent.com/bterwijn/memory_graph/main/images/copies.png)
199
208
 
200
209
 
201
- ### Custom Copy ###
210
+ ## Custom Copy ##
202
211
  We can write our own custom copy function or method in case the three standard "copy" options don't do what we want. For example, in the code below the copy() method of My_Class copies the `digits` but shares the `letters` between two objects.
203
212
 
204
213
  ```python
@@ -224,7 +233,7 @@ mg.show(locals())
224
233
  ```
225
234
  ![copy_method.png](https://raw.githubusercontent.com/bterwijn/memory_graph/main/images/copy_method.png)
226
235
 
227
- ### Name Rebinding ###
236
+ ## Name Rebinding ##
228
237
  When `a` and `b` share a mutable value, then changing the value of `b` changes the value of `a` and vice versa. However, reassigning `b` does not change `a`. When you reassign `b`, you only rebind the name `b` to a new value without effecting any other variables.
229
238
 
230
239
  ```python
@@ -242,7 +251,7 @@ mg.render(locals(), 'rebinding2.png')
242
251
  |:-----------------------------------------------------------:|:-------------------------------------------------------------:|
243
252
  | rebinding1.png | rebinding2.png |
244
253
 
245
- ## Call Stack ##
254
+ # Call Stack #
246
255
  The `mg.stack()` function retrieves the entire call stack, including the local variables for each function on the stack. This enables us to visualize the local variables across all active functions simultaneously. By examining the graph, we can determine whether any local variables from different functions share data. For instance, consider the function `add_one()` which adds the value `1` to each of its parameters `a`, `b`, and `c`.
247
256
 
248
257
  ```python
@@ -270,7 +279,7 @@ a:[4, 3, 2, 1] b:(4, 3, 2) c:[4, 3, 2]
270
279
 
271
280
  This is because `b` is of immutable type 'tuple' so its value gets copied automatically when it is changed. And because the function is called with a copy of `c`, its original value is not changed by the function. The value of variable `a` is the only value of mutable type that is shared between the root stack frame **'0: \<module>'** and the **'1: add_one'** stack frame of the function so only that variable is affected as a result of the function call. The other changes remain confined to the local variables of the ```add_one()``` function.
272
281
 
273
- ### Block ###
282
+ ## Block ##
274
283
  It is often helpful to temporarily block program execution to inspect the graph. For this we can use the `mg.block()` function:
275
284
 
276
285
  ```python
@@ -287,7 +296,7 @@ To change its behavior:
287
296
  * Set `mg.block_prints_location = False` to skip printing the source location.
288
297
  * Set `mg.press_enter_message = None` to skip printing "Press &lt;Enter&gt; to continue...".
289
298
 
290
- ### Recursion ###
299
+ ## Recursion ##
291
300
  The call stack is also helpful to visualize how recursion works. Here we use `mg.block()` to show each step of how recursively ```factorial(3)``` is computed:
292
301
 
293
302
  ```python
@@ -308,7 +317,7 @@ print(factorial(3))
308
317
 
309
318
  and the result is: 1 x 2 x 3 = 6
310
319
 
311
- ### Power Set ###
320
+ ## Power Set ##
312
321
  A more interesting recursive example that shows sharing of data is power_set(). A power set is the set of all subsets of a collection of values.
313
322
 
314
323
  ```python
@@ -338,7 +347,7 @@ print( power_set(['a', 'b', 'c']) )
338
347
  [['a', 'b', 'c'], ['a', 'b'], ['a', 'c'], ['a'], ['b', 'c'], ['b'], ['c'], []]
339
348
  ```
340
349
 
341
- ## Debugging ##
350
+ # Debugging #
342
351
 
343
352
  For the best debugging experience with memory_graph set for example expression:
344
353
  ```
@@ -346,7 +355,7 @@ mg.render(locals(), "my_graph.pdf")
346
355
  ```
347
356
  as a *watch* in a debugger tool such as the integrated debugger in Visual Studio Code. Then open the "my_graph.pdf" output file to continuously see all the local variables while debugging. This avoids having to add any memory_graph `show()` or `render()` calls to your code.
348
357
 
349
- ### Call Stack in Watch Context ###
358
+ ## Call Stack in Watch Context ##
350
359
  The ```mg.stack()``` doesn't work well in *watch* context in most debuggers because debuggers introduce additional stack frames that cause problems. Use these alternative functions for various debuggers to filter out these problematic stack frames:
351
360
 
352
361
  | debugger | function to get the call stack |
@@ -357,7 +366,7 @@ The ```mg.stack()``` doesn't work well in *watch* context in most debuggers beca
357
366
 
358
367
  ![debug_vscode.png](https://raw.githubusercontent.com/bterwijn/memory_graph/main/images/debug_vscode.png)
359
368
 
360
- #### Other Debuggers ####
369
+ ## Other Debuggers ##
361
370
  For other debuggers, invoke this function within the *watch* context. Then, in the "call_stack.txt" file, identify the slice of functions you wish to include in the call stack.
362
371
  ```
363
372
  mg.save_call_stack("call_stack.txt")
@@ -367,7 +376,7 @@ Choose 'after' and 'up_to' what function you want to slice and then call this fu
367
376
  mg.stack_after_up_to(after_function, up_to_function="<module>")
368
377
  ```
369
378
 
370
- ### Debugging without Debugger Tool ###
379
+ ## Debugging without Debugger Tool ##
371
380
 
372
381
  To simplify debugging without a debugger tool, we offer these alias functions that you can insert into your code at the point where you want to visualize a graph:
373
382
 
@@ -400,10 +409,10 @@ and pressing &lt;Enter&gt; a number of times, results in:
400
409
 
401
410
  ![debugging.png](https://raw.githubusercontent.com/bterwijn/memory_graph/main/images/debugging.gif)
402
411
 
403
- ## Datastructure Examples ##
404
- Module memory_graph can be very useful in a course about datastructures, some examples:
412
+ # Data Structure Examples #
413
+ Module memory_graph can be very useful in a course about data structures, some examples:
405
414
 
406
- ### Doubly Linked List ###
415
+ ## Doubly Linked List ##
407
416
  ```python
408
417
  import memory_graph as mg
409
418
  import random
@@ -441,7 +450,7 @@ for i in range(n):
441
450
  ```
442
451
  ![linked_list.png](https://raw.githubusercontent.com/bterwijn/memory_graph/main/images/linked_list.png)
443
452
 
444
- ### Binary Tree ###
453
+ ## Binary Tree ##
445
454
  ```python
446
455
  import memory_graph as mg
447
456
  import random
@@ -477,7 +486,7 @@ for i in range(n):
477
486
  ```
478
487
  ![bin_tree.png](https://raw.githubusercontent.com/bterwijn/memory_graph/main/images/bin_tree.png)
479
488
 
480
- ### Hash Set ###
489
+ ## Hash Set ##
481
490
  ```python
482
491
  import memory_graph as mg
483
492
  import random
@@ -516,34 +525,44 @@ for i in range(n):
516
525
  ![hash_set.png](https://raw.githubusercontent.com/bterwijn/memory_graph/main/images/hash_set.png)
517
526
 
518
527
 
519
- ## Configuration ##
528
+ # Configuration #
520
529
  Different aspects of memory_graph can be configured. The default configuration is reset by importing 'memory_graph.config_default'.
521
530
 
522
- - ***mg.config.max_graph_depth*** : int
523
- - The maxium depth of the graph with default value 12. A `✂` (scissor) symbol indicates where the graph is cut short. Dashed references indicate that there are more references to a node than are shown.
524
-
525
531
  - ***mg.config.max_string_length*** : int
526
532
  - The maximum length of strings shown in the graph. Longer strings will be truncated.
527
533
 
528
- - ***mg.config.not_node_types*** : set
534
+ - ***mg.config.not_node_types*** : set[type]
529
535
  - Holds all types for which no seperate node is drawn but that instead are shown as elements in their parent Node.
530
536
 
531
- - ***mg.config.no_child_references_types*** : set
537
+ - ***mg.config.no_child_references_types*** : set[type]
532
538
  - The set of key_value types that don't draw references to their direct childeren but have their children shown as elements of their node.
533
539
 
534
- - ***mg.config.type_to_node*** : dict
540
+ - ***mg.config.type_to_node*** : dict[type, fun(data) -> Node]
535
541
  - Determines how a data types is converted to a Node (sub)class for visualization in the graph.
536
542
 
537
- - ***mg.config.type_to_color*** : dict
538
- - Maps each type to the [graphviz color](https://graphviz.org/doc/info/colors.html) it gets in the graph.
543
+ - ***mg.config.type_to_color*** : dict[type, color]
544
+ - Maps a type to the [graphviz color](https://graphviz.org/doc/info/colors.html) it gets in the graph.
545
+
546
+ - ***mg.config.type_to_vertical_orientation*** : dict[type, bool]
547
+ - Maps a type to its orientation. Use 'True' for vertical and 'False' for horizontal. If not specified Node_Linear and Node_Key_Value are vertical unless they have references to children.
548
+
549
+ - ***mg.config.type_to_slicer*** : dict[type, int]
550
+ - Maps a type to a Slicer. A slicer determines how many elements of a data type are shown in the graph to prevent the graph from getting too big. 'Slicer()' does no slicing, 'Slicer(1,2,3)' shows just 1 element at the beginning, 2 in the middle, and 3 at the end.
551
+
552
+ - ***mg.config.max_graph_depth*** : int
553
+ - The maxium depth of the graph with default value 12.
539
554
 
540
- - ***mg.config.type_to_vertical_orientation*** : dict
541
- - Maps each type to its orientation. Use 'True' for vertical and 'False' for horizontal. If not specified Node_Linear and Node_Key_Value are vertical unless they have references to children.
555
+ - ***config.graph_cut_symbol*** : str
556
+ - The symbol indicating where the graph is cut short with default `✂`.
557
+
558
+ - ***mg.config.type_to_depth*** : dict[type, int]
559
+ - Maps a type to graph depth to limit the graph size.
542
560
 
543
- - ***mg.config.type_to_slicer*** : dict
544
- - Maps each type to a Slicer. A slicer determines how many elements of a data type are shown in the graph to prevent the graph from getting too big. 'Slicer()' does no slicing, 'Slicer(1,2,3)' shows just 1 element at the beginning, 2 in the middle, and 3 at the end.
561
+ - ***max_missing_edges*** : int
562
+ - Maximum number of missing edges that are shown with default value 2. Dashed references are used to indicate that there are more references to a node than are shown.
545
563
 
546
- ### Simplified Graph ###
564
+
565
+ ## Simplified Graph ##
547
566
  Memory_graph simplifies the visualization (and the viewer's mental model) by **not** showing separate nodes for immutable types like `bool`, `int`, `float`, `complex`, and `str` by default. This simplification can sometimes be slightly misleading. As in the example below, after a shallow copy, lists `a` and `b` technically share their `int` values, but the graph makes it appear as though `a` and `b` each have their own copies. However, since `int` is immutable, this simplification will never lead to unexpected changes (changing `a` won’t affect `b`) so will never result in bugs.
548
567
 
549
568
  The simplification strikes a balance: it is slightly misleading but keeps the graph clean and easy to understand and focuses on the mutable types where unexpected changes can occur. This is why it is the default behavior. If you do want to show separate nodes for `int` values, such as for educational purposes, you can simply remove `int` from the `mg.config.not_node_types` set:
@@ -564,7 +583,7 @@ mg.render(locals(), 'not_node_types2.png')
564
583
 
565
584
  Additionally, the simplification hides away the [reuse of small int values](https://docs.python.org/3/c-api/long.html#c.PyLong_FromLong) in the current CPython implementation, an optimization that might otherwise confuse beginner Python programmers. For instance, after executing `a[1]+=1; b[1]+=1` the `201` value is, maybe surprisingly, still shared between `a` and `b`, whereas executing `a[2]+=1; b[2]+=1` does not result in sharing the `301` value.
566
585
 
567
- ### Temporary Configuration ###
586
+ ## Temporary Configuration ##
568
587
  In addition to the global configuration, a temporary configuration can be set for a single `show()` or `render()` call to change the colors, orientation, and slicer. This example highlights a particular list element in red, gives it a horizontal orientation, and overwrites the default slicer for lists:
569
588
 
570
589
  ```python
@@ -582,10 +601,10 @@ mg.show( locals(),
582
601
  ```
583
602
  ![highlight.png](https://raw.githubusercontent.com/bterwijn/memory_graph/main/images/highlight.png)
584
603
 
585
- ## Extensions ##
604
+ # Extensions #
586
605
  Different extensions are available for types from other Python packages.
587
606
 
588
- ### Numpy ###
607
+ ## Numpy ##
589
608
  Numpy types `array` and `matrix` and `ndarray` can be graphed with "memory_graph.extension_numpy":
590
609
 
591
610
  ```python
@@ -601,7 +620,7 @@ mg.show(locals())
601
620
  ```
602
621
  ![extension_numpy.png](https://raw.githubusercontent.com/bterwijn/memory_graph/main/images/extension_numpy.png)
603
622
 
604
- ### Pandas ###
623
+ ## Pandas ##
605
624
  Pandas types `Series` and `DataFrame` can be graphed with "memory_graph.extension_pandas":
606
625
 
607
626
  ```python
@@ -620,7 +639,7 @@ mg.show(locals())
620
639
  ```
621
640
  ![extension_pandas.png](https://raw.githubusercontent.com/bterwijn/memory_graph/main/images/extension_pandas.png)
622
641
 
623
- ## Introspection ##
642
+ # Introspection #
624
643
  This section is likely to change. Sometimes the introspection fails or is not as desired. For example the `bintrees.avltree.Node` object doesn't show any attributes in the graph below.
625
644
 
626
645
  ```python
@@ -639,7 +658,7 @@ mg.show(locals())
639
658
  ![extension_numpy.png](https://raw.githubusercontent.com/bterwijn/memory_graph/main/images/avltree_fail.png)
640
659
 
641
660
 
642
- ### dir() ###
661
+ ## All attributes using dir() ##
643
662
  A useful start is to give it some color, show the list of all its attributes using `dir()`, and setting an empty Slicer to see the attribute list in full.
644
663
 
645
664
  ```python
@@ -664,7 +683,7 @@ mg.show(locals())
664
683
 
665
684
  Next figure out what are the attributes you want to graph and choose a Node type, there are four options:
666
685
 
667
- ### 1) Node_Leaf ###
686
+ ## 1) Node_Leaf ##
668
687
  Node_Leaf is a node with no children and shows just a single value.
669
688
  ```python
670
689
  import memory_graph as mg
@@ -685,7 +704,7 @@ mg.show(locals())
685
704
  ```
686
705
  ![extension_numpy.png](https://raw.githubusercontent.com/bterwijn/memory_graph/main/images/avltree_leaf.png)
687
706
 
688
- ### 2) Node_Linear ###
707
+ ## 2) Node_Linear ##
689
708
  Node_Linear shows multiple values in a line like a list.
690
709
  ```python
691
710
  import memory_graph as mg
@@ -709,7 +728,7 @@ mg.show(locals())
709
728
  ```
710
729
  ![extension_numpy.png](https://raw.githubusercontent.com/bterwijn/memory_graph/main/images/avltree_linear.png)
711
730
 
712
- ### 3) Node_Key_Value ###
731
+ ## 3) Node_Key_Value ##
713
732
  Node_Key_Value shows key-value pairs like a dictionary. Note the required `items()` call at the end.
714
733
  ```python
715
734
  import memory_graph as mg
@@ -733,7 +752,7 @@ mg.show(locals())
733
752
  ```
734
753
  ![extension_numpy.png](https://raw.githubusercontent.com/bterwijn/memory_graph/main/images/avltree_key_value.png)
735
754
 
736
- ### 4) Node_Table ###
755
+ ## 4) Node_Table ##
737
756
  Node_Table shows all the values as a table.
738
757
  ```python
739
758
  import memory_graph as mg
@@ -757,7 +776,75 @@ mg.show(locals())
757
776
  ![extension_numpy.png](https://raw.githubusercontent.com/bterwijn/memory_graph/main/images/avltree_table.png)
758
777
 
759
778
 
760
- ## Jupyter Notebook ##
779
+ # Introspection Depth #
780
+ To limit the size of the graph the maximum depth of the graph is set by `mg.config.max_graph_depth`. Additionally for each type a depth can be set to further limit the graph, as is done for type `B` in the example below. Scissors indicate where the graph is cut. Alternatively the `id()` of a data elements can be used to further limit the graph, as is done for variable `c`.
781
+
782
+ The value of variable `x` is shown as it is at depth 1 from the root of the graph, but as it can also be reached via `b2` that path need to be shown as well, so this overwrites the depth limit set for type `B`.
783
+
784
+ ```python
785
+ import memory_graph as mg
786
+
787
+ class Base:
788
+
789
+ def __init__(self, n):
790
+ self.elements = [1]
791
+ iter = self.elements
792
+ for i in range(2,n):
793
+ iter.append([i])
794
+ iter = iter[-1]
795
+
796
+ def get_last(self):
797
+ iter = self.elements
798
+ while len(iter)>1:
799
+ iter = iter[-1]
800
+ return iter
801
+
802
+ class A(Base):
803
+
804
+ def __init__(self, n):
805
+ super().__init__(n)
806
+
807
+ class B(Base):
808
+
809
+ def __init__(self, n):
810
+ super().__init__(n)
811
+
812
+ class C(Base):
813
+
814
+ def __init__(self, n):
815
+ super().__init__(n)
816
+
817
+ a = A(6)
818
+ b1 = B(6)
819
+ b2 = B(6)
820
+ c = C(6)
821
+
822
+ x = ['x']
823
+ b2.get_last().append(x)
824
+
825
+ mg.config.type_to_depth[B] = 3
826
+ mg.config.type_to_depth[id(c)] = 2
827
+ mg.show(locals())
828
+ ```
829
+ ![extension_numpy.png](https://raw.githubusercontent.com/bterwijn/memory_graph/main/images/introspect_depth.png)
830
+
831
+ ## Hidden Edges ##
832
+
833
+ As the value of `x` is shown in the graph, we would want to show all the references to it, but the Slicer hides references by slicing the list to keep the graph small. The `max_missing_edges` variable determines how many hidden references to `x` we show. If there are more references then we show, then theses hidden references are shown with dashed lines to indicate some references are left out.
834
+
835
+ ```python
836
+ import memory_graph as mg
837
+
838
+ data = []
839
+ x = ['x']
840
+ for i in range(20):
841
+ data.append(x)
842
+
843
+ mg.show(locals())
844
+ ```
845
+ ![extension_numpy.png](https://raw.githubusercontent.com/bterwijn/memory_graph/main/images/hidden_edges.png)
846
+
847
+ # Jupyter Notebook #
761
848
  In Jupyter Notebook `locals()` has additional variables that cause problems in the graph, use `mg.locals_jupyter()` to get the local variables with these problematic variables filtered out. Use `mg.stack_jupyter()` to get the whole call stack with these variables filtered out.
762
849
 
763
850
  We can use `mg.show()` and `mg.render()` in a Jupyter Notebook, but alternatively we can also use `mg.create_graph()` to create a graph and the `display()` function to render it inline with for example:
@@ -770,7 +857,7 @@ mg.block(display, mg.create_graph(mg.locals_jupyter()) ) # the same but blocked
770
857
  See for example [jupyter_example.ipynb](https://raw.githubusercontent.com/bterwijn/memory_graph/main/src/jupyter_example.ipynb).
771
858
  ![jupyter_example.png](https://raw.githubusercontent.com/bterwijn/memory_graph/main/images/jupyter_example.png)
772
859
 
773
- ## ipython ##
860
+ # ipython #
774
861
  In ipython `locals()` has additional variables that cause problems in the graph, use `mg.locals_ipython()` to get the local variables with these problematic variables filtered out. Use `mg.stack_ipython()` to get the whole call stack with these variables filtered out.
775
862
 
776
863
  Additionally install file [auto_memory_graph.py](https://raw.githubusercontent.com/bterwijn/memory_graph/main/src/auto_memory_graph.py) in the ipython startup directory:
@@ -780,15 +867,15 @@ Additionally install file [auto_memory_graph.py](https://raw.githubusercontent.c
780
867
  Then after starting 'ipython' call function `mg_switch()` to turn on/off the automatic visualization of local variables after each command.
781
868
  ![ipyton.png](https://raw.githubusercontent.com/bterwijn/memory_graph/main/images/ipython.png)
782
869
 
783
- ## In the Browser ##
870
+ # In the Browser #
784
871
  We can also run memory_graph in the browser: <a href="https://bterwijn.github.io/memory_graph/src/pyodide.html" target="_blank">Pyodide Example</a>
785
872
  ![pyodide.png](https://raw.githubusercontent.com/bterwijn/memory_graph/main/images/pyodide.png)
786
873
 
787
- ## Troubleshooting ##
874
+ # Troubleshooting #
788
875
 
789
876
  - Adobe Acrobat Reader [doesn't refresh a PDF file](https://community.adobe.com/t5/acrobat-reader-discussions/reload-refresh-pdfs/td-p/9632292) when it changes on disk and blocks updates which results in an `Could not open 'somefile.pdf' for writing : Permission denied` error. One solution is to install a PDF reader that does refresh ([SumatraPDF](https://www.sumatrapdfreader.org/), [Okular](https://okular.kde.org/), ...) and set it as the default PDF reader. Another solution is to `render()` the graph to a different output format and to open it manually.
790
877
 
791
878
  - When graph edges overlap it can be hard to distinguish them. Using an interactive graphviz viewer, such as [xdot](https://github.com/jrfonseca/xdot.py), on a '*.gv' DOT output file will help.
792
879
 
793
- ### Invocation_Tree Package ###
880
+ ## Invocation_Tree Package ##
794
881
  The [memory_graph](https://pypi.org/project/memory-graph/) package visualizes your data. If instead you want to visualize function calls, check out the [invocation_tree](https://pypi.org/project/invocation-tree/) package.