How does jinja2 embedding work in a Bokeh server?

The VM part yes I agree. The explanation of how jinja embedding works in the Bokeh framework is more a support question which I hope helps us to do some further investigation into the issue. The VM case has two issues, one with the embedding (which also occurs in the repro in the issue), another one with num-procs having different behaviors.