-
Notifications
You must be signed in to change notification settings - Fork 1
/
snippets.json
53 lines (52 loc) · 1.62 KB
/
snippets.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{
"snippets" : [
{
"name" : "hvplot.pandas",
"code" : [
"import os",
"import pandas as pd",
"import hvplot.pandas",
"import holoviews as hv",
"hv.extension('bokeh')"
]
},
{
"name" : "hvplot.xarray",
"code" : [
"import os",
"import pandas as pd",
"import xarray as xr",
"import hvplot.xarray",
"import geoviews as gv",
"import holoviews as hv",
"import cartopy.crs as ccrs",
"hv.extension('bokeh')"
]
},
{
"name" : "expand_cell",
"code" : [
"from IPython.core.display import display, HTML",
"display(HTML('<style>.container { width:100% !important; }</style>'))"
]
},
{
"name" : "make_directories",
"code" : [
"!mkdir $(jupyter --data-dir)/nbextensions",
"!mkdir $(jupyter --data-dir)/nbextensions/snippets/",
"!touch $(jupyter --data-dir)/nbextensions/snippets/snippets.json",
"# full path $(jupyter --data-dir)/nbextensions/snippets/snippets.json"
]
},
{
"name" : "tutorial_test",
"code" : [
"import xarray as xr",
"import hvplot.xarray",
"ds = xr.tutorial.open_dataset('air_temperature')",
"ds.hvplot('lon', 'lat')"
]
}
]
}