Hi guys. Wondering if anybody else has been able t...
# general
i
Hi guys. Wondering if anybody else has been able to run
shell_plus --notebook
for their Django app with pants. We are having a lot of issues with dependencies doing it.
h
What are the issues? Django notoriously does a lot of dynamic importing by name, rather than statically via
import
statements. So Pants often cannot infer those dependencies, and you must add them to the BUILD files.
Could that be related?
i
Ya. We determined the issue to be jupyter running outside of the sandbox
So there really wasn't a good solution for this besides again wrapping the entire app in another docker container and installing all the requirements using pip
h
huh, having an explicit dep on jupyter didn’t work?
i
nope. I think this is an instance of another strange Django hack
h
Some day (hopefully soon) I will write a proper Pants plugin for Django
That understands the dep magic