rough-minister-58256
10/10/2019, 9:00 PMenough-analyst-54434
10/10/2019, 9:14 PMrough-minister-58256
10/10/2019, 10:10 PM%pants_load src/python/x/y:z
that builds a pex and then bootstraps in the live kernel via pex.pex_bootstrapper
.rough-minister-58256
10/10/2019, 10:11 PMenough-analyst-54434
10/10/2019, 10:12 PMrough-minister-58256
10/10/2019, 10:15 PMrough-minister-58256
10/10/2019, 10:20 PMrough-minister-58256
10/10/2019, 10:20 PMrough-minister-58256
10/10/2019, 10:21 PMenough-analyst-54434
10/10/2019, 10:25 PMrough-minister-58256
10/10/2019, 10:49 PM!pip install x
etc. here’s an approximate runnable example: https://colab.research.google.com/github/tensorflow/tfx/blob/test_263609355/tfx/examples/chicago_taxi_pipeline/taxi_pipeline_interactive.ipynbrough-minister-58256
10/10/2019, 10:50 PM%requirements_load
runs pex -f science-binaries --no-pypi <req> <req> etc
to net the same effect in a pex-ified world sans open network access.rough-minister-58256
10/10/2019, 10:51 PMrough-minister-58256
10/10/2019, 10:52 PM%pants_load
does the same at the pants layer for entire target closures.rough-minister-58256
10/10/2019, 10:52 PMenough-analyst-54434
10/10/2019, 10:54 PMrough-minister-58256
10/18/2019, 9:01 AMrough-minister-58256
10/18/2019, 9:02 AMpex_bootstrapper.bootstrap_pex_env()
in succession - seems to work reasonably well, probably overlooking a few things in the import machinery tho but expecting most of that to get covered by bootstrap.rough-minister-58256
10/18/2019, 9:11 AMrough-minister-58256
10/18/2019, 9:11 AM