I am very new to data science and jupyter lab. Until recently I used to work on Google Colaboratory, where I could run a piece of code close the colab tab and when I reopen the state of the execution would be intact.
For example, say I have a=10 and print(a) in another block. I run both these blocks, I close colab and reopen it. The output 10 is still there. Now if I add another block and run print(a+1) it would remember what I had saved in a and display 2. However, in jupyter lab, although the output are still there I am having to re-run everything from the beginning to add new codes. The actual context for which I am asking this question is not as simple and short as a=1, I am importing large datasets, fitting classifiers which takes way too long.
Is there a way I can achieve what I get with colab on jupyter lab only? I am running on just local host?
Thank you!