https://pantsbuild.org/ logo
b

bored-energy-25252

10/25/2022, 2:59 AM
How can I disable dependency inference for Python: https://blog.pantsbuild.org/dependency-inference/ A use case, I wanna launch a Python repl for interactive usage, I do not want any of my dependencies are missing and I do not want to create a virtualenv manually.
1
s

sparse-lifeguard-95737

10/25/2022, 3:31 AM
disabling dependency inference would make it so you have to manually specify all dependencies for all targets in your project, which doesn’t sounds like what you want
which will make it so all the 3rdparty requirements from your lockfile get loaded into the repl sandbox
b

bored-energy-25252

10/25/2022, 5:08 AM
Thanks! It is exactly what I need.
But I found it will launch a Python REPL, but not what I expect.
Finally, I use Pants macro to solve my problem: https://github.com/da-tubi/notebooks
3 Views