-
Notifications
You must be signed in to change notification settings - Fork 66
Expand file tree
/
Copy pathsetup_rise.py
More file actions
30 lines (29 loc) · 800 Bytes
/
setup_rise.py
File metadata and controls
30 lines (29 loc) · 800 Bytes
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
#! /usr/bin/env python3
from traitlets.config.manager import BaseJSONConfigManager
from pathlib import Path
path = Path.home() / ".jupyter" / "nbconfig"
print("RISE config file is updated to: " + str(path / "rise.json"))
cm = BaseJSONConfigManager(config_dir=str(path))
cm.update(
"rise",
{
"start_slideshow_at": "selected",
"auto_select": "first",
"transition": "fade",
"scroll": True,
"theme": "solarized",
"autolaunch": True,
"chalkboard": {
"chalkEffect": 1,
"chalkWidth": 4,
"theme": "whiteboard",
"transition": 800
},
"enable_chalkboard": True,
"reveal_shortcuts": {
"chalkboard": {
"clear": "ctrl-k"
}
}
}
)