Run ReproZip for part of script
See original GitHub issueWould 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:
- Created 4 years ago
- Comments:10 (6 by maintainers)
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.
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.