Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How can I use #$save partly?

See original GitHub issue

Thank you for giving me a nice extension but I have a question about how to apply #$save in part of whole codes like below:

import Calculate
result1 = Calculate.diff(something)
result2 = Calculate.add(something)

# I want to start save from here

def largest_prime_factor(n):
    i = 2
    while i * i <= n:
        if n % i:
            i += 1
            n //= i
    return n

def another_heavy_function(n):
    return heavy_res

result_big = largest_prime_factor(8008514751439999)
result_big2 = another_heavy(13123213123)

# I want to stop save from here

other_excute_after_save = Calculate.sum(something)
other_excute_after_save = Calculate.partial(something) 
print("code end line")

I am so sorry if you have already guided it in your doc. but I can’t find. I can only see the case that stores from the start of codes to the #$save line

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

Almenoncommented, Mar 22, 2020

I just released 1.0.22. It has a setting for idempotency called keepPreviousVars. If set to true AREPL will add onto the local state each run instead of clearing it and starting from fresh. This will let you write high-cost code that initializes a variable, comment out the high-cost code, but still have the variable to play around with 😃

Almenoncommented, Feb 23, 2020

I just released v1.0.21, arepl_store should work now 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

ios - Save managedObjectContext partly - Stack Overflow
I have 3 transaction already in NSManagedObjectContext : A , B , C . They were performed / added to context in the...
Read more >
Can user save a partly completed form as a template? - Jotform
Yes, it is possible to create this type of form using the Session method. Please take note that this method requires you to...
Read more >
Save files - IBM
Using a save file allows you to save and restore objects without first placing save media into your save media device. You can...
Read more >
Partly Save the data on button submit click - MSDN - Microsoft
On my every tab I have button that take user to next page. At the last stage when user click submit button it...
Read more >
How to Take a Full and Partial Screenshot in Windows 10?
Edit the screenshot or save it to a suitable location. use the Print Screen key. Method 2: Press Win+Shift+S. Pressing Win+Shift+S ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found