hack to work with new d3

Explicitly setting the d3 variable for the notebook case.