question-mark
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.

Run ReproZip for part of script

See original GitHub issue

Would it possible to run ReproZip for part of a python script?

To elaborate a bit… we are developing a tool whereby users would specify multiple parameters, and based on this different models and protocols would be employed for the simulations (i.e. it involves user interactivity). Naturally, the packages and files that are invoked would also vary based on the above, and the ‘environment’ I wish to save should exclude these initial parts and other housekeeping tasks, and focus solely on the loading and execution of the model.

With this in mind, is it possible to invoke ReproZip from within a python script (as opposed to calling from the terminal CLI) so that I can track (and save) the files/packages that are required between, e.g. , line number x and y of my script (i.e. to be able to enable/disable ReproZip tracing inside a python script)?

I suppose ReproZip wasn’t intended to run in this fashion, but I am curious to know if I could employ certain sub-modules or methods to achieve this. I also took a look at the Jupyter plugin to see if some bits might be useful.

I intend to dig deeper, but felt it was much better to ask here to get a better idea of the lay of the land. Thanks in advance.

(apologies if a similar question has been answered previously elsewhere)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
remram44commented, Jul 29, 2019

Glad I could help! I am very interested in your feedback and experience as you attempt this, so don’t hesitate to share what you can.

Closing this ticket in favor of #359.

1reaction
remram44commented, Jul 5, 2019

Unfortunately, ReproZip is not hooked into the experiment’s Python interpreter, so I have to take a different approach. Probably simply reading the .dist-info folders.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using reprozip
The following command is used to trace a command line, or a run , used by the ... The first part of the...
Read more >
Using​ ​ReproZip​ ​for​ ​Reproducibility​ ​and ... - OSF
For​​instance,​​if​​a​​user​​runs​​a​​Python​​script​​to​​analyze​​data​​by​​typing​​'python analysis.py'​​in​​the​​command​​line ...
Read more >
reprozip - PyPI
ReproZip is a tool aimed at scientists using Linux distributions, that simplifies the process of creating reproducible experiments from programs.
Read more >
ReproServer: Making Reproducibility Easier and Less Intensive
Alice first uses ReproZip to create a .rpz bundle for her experiment. Instead of running the scripts in the regular way python collection.py....
Read more >
ReproZip Documentation - Read the Docs
Currently, ReproZip can only pack experiments that originally run on Linux. ... The first part of the configuration file gives general ...
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 Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found