Getting depth information from geological cross sections can be done using this code bqcs. It uses the interactive bqplot environment.
Next to generating depth information of geological layers by clicking, it is possible to save them in .csv
files as input for other modelling software.
image source