PolicyEngine / policyengine-app

PolicyEngine's free web app for computing the impact of public policy.
GNU Affero General Public License v3.0
41 stars 109 forks source link

Specify country package version in `Reproduce in Python` #118

Open MaxGhenis opened 1 year ago

MaxGhenis commented 1 year ago

However's easiest for now, e.g. as a comment. Long-term it'd be cool to create an environment with the specific version.

MaxGhenis commented 1 year ago

This still isn't immediately a priority, but I'm giving a seminar at the Berkeley Institute on Transparency in the Social Sciences on March 23 and I'd like to have this there.

daemon-reconfig commented 7 months ago

Could you elaborate this issue a bit more

anth-volk commented 7 months ago

The PolicyEngine app has two sides - the policy calculator and household calculator. In each, after creating a simulation or calculation, the user eventually reaches a "Reproduce in Python" page, where they're given pre-generated Python code that can be copied into an appropriate environment and run to receive the same results. This relies on PolicyEngine country packages, and Max is wanting a line within those pages that specifies which version of the relevant country package is utilized.

daemon-reconfig commented 7 months ago

sure will look into it and let you know if I can add the feature. thanks for your patience

daemon-reconfig commented 7 months ago
Screenshot 2024-04-12 at 11 35 24 AM

where should i add the feature?

anth-volk commented 7 months ago

@nikhilwoodruff In the Reproduce in Python blocks, there's no way to specify which version of a package to utilize, correct? Is there any way to integrate this into the block? Otherwise, Max had indicated it could be added as a comment.