December 2018
Intermediate to advanced
268 pages
8h 23m
English
In this case, we will set up the leanest container we can to house our code:
FROM base_imageRUN apt install -y python3-pydot python-pydot-ng graphvizADD . /
Each line is easy to break down. First, we inherit from our base_image we developed in Chapter 2, Data First, Easy Environment, and Data Prep, with the following:
FROM base_image
Next, we install one of the most handy tools in Python development—IPython:
RUN apt install -y python3-pydot python-pydot-ng graphviz ipython
IPython allows you to drop down to a shell in the middle of any Python code. If you are having trouble understanding an issue with your Python code, I suggest using IPython to help troubleshoot. If you want an interactive console at a particular ...
Read now
Unlock full access