Replies: 3 comments 5 replies
-
Hey, I'm not sure to understand the example. Is this something that is not working as expected in the current implementation? If not I'll move this to discussions.
|
Beta Was this translation helpful? Give feedback.
-
Sorry, discussions was actually the place to post. |
Beta Was this translation helpful? Give feedback.
-
When I designed the engine I concluded using hash codes would not work. Eg
At this point x = 4 and the list is [4] Now let's say I change the second line to
If I run this line, x is not changed, but my list is now empty. The other option I considered was to watch for hash changes and deduce what should be updated, but then:
Change line 2 to
Yes I think I'll go with this. |
Beta Was this translation helpful? Give feedback.
-
Hello, following our exchange on reddit, I think it's a very hard task to detect variables updates, for instance :
Using a "deepHashCode" to compare vars after snippet execution can be a solution, but with size limitations (huge collections or arrays).
Another option is to recompute the whole notebook, excepting snippets which previous executions was time consuming, asking advice to the user.
This solution overlaps the restore of a saved notebook.
Maybe these options can coexist and be chosen by the user, according to his usage profile (java learning, api testing, data science, ...)
Beta Was this translation helpful? Give feedback.
All reactions