File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change 18
18
interactive ,
19
19
widget_serialization ,
20
20
)
21
+ from ipywidgets .embed import embed_minimal_html
21
22
from traitlets import (
22
23
Any ,
23
24
Bool ,
@@ -2175,3 +2176,15 @@ def __add__(self, item):
2175
2176
elif isinstance (item , InfoBubble ):
2176
2177
self .add_bubble (item )
2177
2178
return self
2179
+
2180
+ def save (self , outfile , ** kwargs ):
2181
+ """Save the Map to .html file.
2182
+
2183
+ Parameters
2184
+ ----------
2185
+ outfile: str or file-like object
2186
+ The file to write the HTML output to.
2187
+ kwargs: keyword-arguments
2188
+ Extra parameters to pass to the ipywidgets.embed.embed_minimal_html function.
2189
+ """
2190
+ embed_minimal_html (outfile , views = [self ], ** kwargs )
Original file line number Diff line number Diff line change 29
29
" dist/*.png" ,
30
30
" lib/**/*.gif" ,
31
31
" dist/*.gif" ,
32
+ " dist/*.map" ,
32
33
" LICENSE"
33
34
],
34
35
"scripts" : {
You can’t perform that action at this time.
0 commit comments