How can I disable dependency inference for Python:...
# general
b
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
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
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