Enable DynamicMap interaction in browser

DynamicMap needs a python server to run in the background. So you can’t save it as HTML.

See here for a more detailed answer.