Hi guys. Wondering if anybody else has been able t...
# general
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.
What are the issues? Django notoriously does a lot of dynamic importing by name, rather than statically via
statements. So Pants often cannot infer those dependencies, and you must add them to the BUILD files.
Could that be related?
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
huh, having an explicit dep on jupyter didn’t work?
nope. I think this is an instance of another strange Django hack
Some day (hopefully soon) I will write a proper Pants plugin for Django
That understands the dep magic