2 ms·
Another advantage is when you have very slow code, you can use cells as caches, essentially without having to worry about serialization to disk. This often make
by szvsw 2y ago
Another advantage is when you have very slow code, you can use cells as caches, essentially without having to worry about serialization to disk. This often makes it much easier to interactively explore/develop downstream methods without needing to re-run earlier upstream dependencies.
This is especially useful with large datasets. Even if serialization is straightforward, if you have enough data (or the data is remotely hosted), loading it might take anywhere from 2s to multiple minutes, and even 2s is enough to get you out of the flow if you are working rapidly and want quick feedback.
- zellyn 2y agoThis. It's also useful when one of your cells goes and queries a slow API for a bunch of data — I do this all the time with Datadog.