j1-template 2022.2.3 → 2022.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (115) hide show
  1. checksums.yaml +4 -4
  2. data/assets/themes/j1/adapter/js/analytics.js +13 -13
  3. data/assets/themes/j1/adapter/js/nbinteract.js +192 -39
  4. data/assets/themes/j1/core/css/themes/unodark/bootstrap.css +30 -40
  5. data/assets/themes/j1/core/css/themes/unodark/bootstrap.min.css +1 -1
  6. data/assets/themes/j1/core/css/themes/unolight/bootstrap.css +23 -12
  7. data/assets/themes/j1/core/css/themes/unolight/bootstrap.min.css +1 -1
  8. data/assets/themes/j1/core/js/template.js +1 -1
  9. data/assets/themes/j1/core/js/template.min.js +1 -1
  10. data/assets/themes/j1/core/js/template.min.js.map +1 -1
  11. data/assets/themes/j1/modules/carousel/css/theme/uno.css +5 -0
  12. data/assets/themes/j1/modules/carousel/css/theme/uno.min.css +1 -1
  13. data/assets/themes/j1/modules/justifiedGallery/css/justifiedGallery.css +6 -0
  14. data/assets/themes/j1/modules/justifiedGallery/css/justifiedGallery.min.css +1 -1
  15. data/assets/themes/j1/modules/mmenuLight/css/mmenu-light.css +2 -2
  16. data/assets/themes/j1/modules/mmenuLight/css/mmenu-light.min.css +1 -2
  17. data/assets/themes/j1/modules/nbInteract/css/theme/uno/nbinteract-core.css +33 -33
  18. data/assets/themes/j1/modules/nbInteract/css/theme/uno/nbinteract-core.min.css +1 -1
  19. data/assets/themes/j1/modules/nbInteract/js/requireJS/require.js +2068 -0
  20. data/assets/themes/j1/modules/nbInteract/js/requireJS/require.min.js +36 -0
  21. data/assets/themes/j1/modules/plotly/LICENSE +21 -0
  22. data/assets/themes/j1/modules/plotly/README.md +32 -0
  23. data/assets/themes/j1/modules/plotly/js/plotly.js +265345 -0
  24. data/assets/themes/j1/modules/plotly/js/plotly.min.js +65 -0
  25. data/assets/themes/j1/modules/requirejs/LICENSE +45 -0
  26. data/assets/themes/j1/modules/requirejs/README.md +79 -0
  27. data/assets/themes/j1/modules/requirejs/js/require.js +2068 -0
  28. data/assets/themes/j1/modules/requirejs/js/require.min.js +36 -0
  29. data/lib/j1/version.rb +1 -1
  30. data/lib/starter_web/Gemfile +1 -1
  31. data/lib/starter_web/_config.yml +1 -1
  32. data/lib/starter_web/_data/modules/analytics.yml +8 -23
  33. data/lib/starter_web/_data/modules/defaults/analytics.yml +1 -1
  34. data/lib/starter_web/_data/modules/justifiedGallery.yml +14 -8
  35. data/lib/starter_web/_data/modules/navigator_menu.yml +6 -3
  36. data/lib/starter_web/_data/modules/nbinteract.yml +12 -48
  37. data/lib/starter_web/_data/resources.yml +56 -0
  38. data/lib/starter_web/_includes/attributes.asciidoc +11 -0
  39. data/lib/starter_web/_plugins/lunr_index.rb +1 -1
  40. data/lib/starter_web/assets/images/pages/nbinteract/mandelbrot-menge-1920x1200.jpg +0 -0
  41. data/lib/starter_web/assets/images/pages/nbinteract/mandelbrot-menge.png +0 -0
  42. data/lib/starter_web/assets/images/pages/nbinteract/manual/nbi_bar.jpg +0 -0
  43. data/lib/starter_web/assets/images/pages/nbinteract/manual/nbi_hist.jpg +0 -0
  44. data/lib/starter_web/assets/images/pages/nbinteract/manual/nbi_line.jpg +0 -0
  45. data/lib/starter_web/assets/images/pages/nbinteract/manual/nbi_multiple_choice.jpg +0 -0
  46. data/lib/starter_web/assets/images/pages/nbinteract/manual/nbi_scatter.jpg +0 -0
  47. data/lib/starter_web/assets/images/pages/nbinteract/manual/nbi_scatter_drag.jpg +0 -0
  48. data/lib/starter_web/assets/images/pages/nbinteract/manual/nbi_short_answer.jpg +0 -0
  49. data/lib/starter_web/assets/videos/gallery/kick-it-old-school-poster.jpg +0 -0
  50. data/lib/starter_web/assets/videos/gallery/nye-party-shop-poster.jpg +0 -0
  51. data/lib/starter_web/assets/videos/gallery/stay-colorful-poster.jpg +0 -0
  52. data/lib/starter_web/collections/posts/public/series/_posts/2020-01-01-post-wiki-series.adoc +1 -0
  53. data/lib/starter_web/collections/posts/public/series/_posts/2020-01-02-post-wiki-series.adoc +1 -0
  54. data/lib/starter_web/collections/posts/public/series/_posts/2020-01-03-post-wiki-series.adoc +1 -0
  55. data/lib/starter_web/package.json +1 -2
  56. data/lib/starter_web/pages/public/jupyter/docs/j1-nbinteract-doc.adoc +16 -16
  57. data/lib/starter_web/pages/public/jupyter/docs/nbi-widget-manual.adoc +149 -2
  58. data/lib/starter_web/pages/public/jupyter/docs/nbinteract-doc.adoc +1 -1
  59. data/lib/starter_web/pages/public/jupyter/examples/j1-circular-times-table.adoc +137 -0
  60. data/lib/starter_web/pages/public/jupyter/examples/j1-interactive-widgets.adoc +2 -2
  61. data/lib/starter_web/pages/public/jupyter/examples/j1-odes-in-python.adoc +11 -6
  62. data/lib/starter_web/pages/public/jupyter/examples/j1-testing-plotly.adoc +86 -0
  63. data/lib/starter_web/pages/public/jupyter/examples/j1_climate-change-forecast.adoc +2 -2
  64. data/lib/starter_web/pages/public/jupyter/notebooks/j1/.ipynb_checkpoints/j1_climate_change_forecast-checkpoint.ipynb +1058 -0
  65. data/lib/starter_web/pages/public/jupyter/notebooks/j1/{j1_ode_selected.ipynb → .ipynb_checkpoints/j1_docs_example_dynamic-checkpoint.ipynb} +1 -1
  66. data/lib/starter_web/pages/public/jupyter/notebooks/j1/.ipynb_checkpoints/j1_interactive_widgets-checkpoint.ipynb +20 -20
  67. data/lib/starter_web/pages/public/jupyter/notebooks/j1/.ipynb_checkpoints/{j1_altair_interactive_test-checkpoint.ipynb → j1_ode_selected-checkpoint.ipynb} +99 -318
  68. data/lib/starter_web/pages/public/jupyter/notebooks/j1/.ipynb_checkpoints/j1_odes_in_python-checkpoint.ipynb +15227 -0
  69. data/lib/starter_web/pages/public/jupyter/notebooks/j1/j1_circular_times_table.ipynb +12390 -0
  70. data/lib/starter_web/pages/public/jupyter/notebooks/j1/j1_climate_change_forecast.ipynb +2 -2
  71. data/lib/starter_web/pages/public/jupyter/notebooks/j1/j1_docs_example_dynamic.ipynb +1 -1
  72. data/lib/starter_web/pages/public/jupyter/notebooks/j1/j1_interactive_widgets.ipynb +20 -20
  73. data/lib/starter_web/pages/public/jupyter/notebooks/j1/j1_odes_in_python.ipynb +15227 -0
  74. data/lib/starter_web/pages/public/jupyter/notebooks/nbi-docs/.ipynb_checkpoints/nbi_docs_examples_variability_of_the_sample_mean-checkpoint.ipynb +323 -0
  75. data/lib/starter_web/pages/public/jupyter/notebooks/nbi-docs/.ipynb_checkpoints/nbi_docs_recipes_graphing-checkpoint.ipynb +387 -0
  76. data/lib/starter_web/pages/public/jupyter/notebooks/nbi-docs/.ipynb_checkpoints/nbi_docs_recipes_layout-checkpoint.ipynb +384 -0
  77. data/lib/starter_web/pages/public/jupyter/notebooks/nbi-docs/.ipynb_checkpoints/nbi_docs_tutorial_interact-checkpoint.ipynb +254 -0
  78. data/lib/starter_web/pages/public/jupyter/notebooks/nbi-docs/.ipynb_checkpoints/nbi_docs_tutorial_monty_hall-checkpoint.ipynb +732 -0
  79. data/lib/starter_web/pages/public/jupyter/notebooks/nbi-docs/nbi_docs_tutorial_monty_hall.ipynb +25 -26
  80. data/lib/starter_web/pages/public/jupyter/notebooks/textbooks/j1_circular_times_table.html +749 -0
  81. data/lib/starter_web/pages/public/jupyter/notebooks/textbooks/j1_climate_change_forecast.html +2 -2
  82. data/lib/starter_web/pages/public/jupyter/notebooks/textbooks/j1_docs_example_dynamic.html +186 -186
  83. data/lib/starter_web/pages/public/jupyter/notebooks/textbooks/j1_interactive_widgets.html +919 -919
  84. data/lib/starter_web/pages/public/jupyter/notebooks/textbooks/j1_odes_in_python.html +955 -0
  85. data/lib/starter_web/pages/public/jupyter/notebooks/textbooks/nbi_docs_recipes_interactive_questions.html +242 -242
  86. data/lib/starter_web/pages/public/jupyter/services/binderhub.adoc +3 -3
  87. data/lib/starter_web/pages/public/learn/roundtrip/100_present_images.adoc +1 -1
  88. data/lib/starter_web/pages/public/learn/roundtrip/100_present_videos.adoc +9 -15
  89. data/lib/starter_web/pages/public/learn/roundtrip/200_typography.adoc +1 -1
  90. data/lib/starter_web/pages/public/learn/roundtrip/300_icon_fonts.adoc +1 -1
  91. data/lib/starter_web/pages/public/learn/roundtrip/400_asciidoc_extensions.adoc +1 -1
  92. data/lib/starter_web/pages/public/learn/roundtrip/410_bs_modals_extentions.adoc +1 -1
  93. data/lib/starter_web/pages/public/learn/roundtrip/420_responsive_tables_extensions.adoc +1 -1
  94. data/lib/starter_web/pages/public/legal/en/300_privacy.adoc +117 -12
  95. data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
  96. data/lib/starter_web/utilsrv/package.json +1 -1
  97. metadata +38 -22
  98. data/lib/starter_web/assets/videos/gallery/adriana-lima-poster.jpg +0 -0
  99. data/lib/starter_web/pages/public/jupyter/notebooks/binder/binder-launches.ipynb +0 -385
  100. data/lib/starter_web/pages/public/jupyter/notebooks/j1/.ipynb_checkpoints/Untitled-checkpoint.ipynb +0 -6
  101. data/lib/starter_web/pages/public/jupyter/notebooks/j1/.ipynb_checkpoints/binder-launches-checkpoint.ipynb +0 -385
  102. data/lib/starter_web/pages/public/jupyter/notebooks/j1/.ipynb_checkpoints/google_altair-checkpoint.ipynb +0 -33
  103. data/lib/starter_web/pages/public/jupyter/notebooks/j1/binder-launches.ipynb +0 -411
  104. data/lib/starter_web/pages/public/jupyter/notebooks/textbooks/binder-launches.html +0 -670
  105. data/lib/starter_web/pages/public/jupyter/notebooks/textbooks/j1_ode_selected.html +0 -186
  106. data/lib/starter_web/pages/public/jupyter/notebooks/themes/altair/excel.py +0 -55
  107. data/lib/starter_web/pages/public/jupyter/notebooks/themes/altair/ggplot.py +0 -108
  108. data/lib/starter_web/pages/public/jupyter/notebooks/themes/altair/ggplot2.py +0 -108
  109. data/lib/starter_web/pages/public/jupyter/notebooks/themes/altair/husky.py +0 -121
  110. data/lib/starter_web/pages/public/jupyter/notebooks/themes/altair/latimes.py +0 -149
  111. data/lib/starter_web/pages/public/jupyter/notebooks/themes/altair/pcolor.py +0 -6
  112. data/lib/starter_web/pages/public/jupyter/notebooks/themes/altair/quartz.py +0 -55
  113. data/lib/starter_web/pages/public/jupyter/notebooks/themes/altair/spacy_base.py +0 -94
  114. data/lib/starter_web/pages/public/jupyter/notebooks/themes/altair/spacy_mono.py +0 -158
  115. data/lib/starter_web/pages/public/jupyter/notebooks/themes/altair/sunsentinel.py +0 -125
@@ -1,149 +0,0 @@
1
- # A Los Angeles Times theme for Python's Altair statistical visualization
2
- # library
3
-
4
- # pip install altair-latimes
5
- #
6
- # import altair_latimes as lat
7
- #
8
- # alt.themes.register('latimes', lat.theme)
9
- # alt.themes.enable('latimes')
10
-
11
- # Color schemes and defaults
12
- palette = dict(
13
- black='#000000',
14
- white='#ffffff',
15
- default='#82c6df',
16
- accent='#006d8f',
17
- highlight='#ec8431',
18
- democrat='#5789b8',
19
- republican='#d94f54',
20
- schemes={
21
- 'category-6': [
22
- '#3580b1',
23
- '#ec8431',
24
- '#ab7fb4',
25
- '#c89d29',
26
- '#adc839',
27
- '#829eb1',
28
- ],
29
- 'fire-7': [
30
- '#fbf2c7',
31
- '#f9e39c',
32
- '#f8d36e',
33
- '#f4bb6a',
34
- '#e68a4f',
35
- '#d15a40',
36
- '#ab4232',
37
- ],
38
- 'fireandice-6': [
39
- '#e68a4f',
40
- '#f4bb6a',
41
- '#f9e39c',
42
- '#dadfe2',
43
- '#a6b7c6',
44
- '#849eae',
45
- ],
46
- 'ice-7': [
47
- '#edefee',
48
- '#dadfe2',
49
- '#c4ccd2',
50
- '#a6b7c6',
51
- '#849eae',
52
- '#607785',
53
- '#47525d',
54
- ],
55
- 'cb-diverging-purpgrn': [
56
- '#762a83',
57
- '#af8dc3',
58
- '#e7d4e8',
59
- '#f7f7f7',
60
- '#d9f0d3',
61
- '#7fbf7b',
62
- '#1b7837',
63
- ],
64
- }
65
- )
66
-
67
-
68
- def theme():
69
- """
70
- A Los Angeles Times theme for Altair.
71
- """
72
- # Headline stuff
73
- headlineFontSize = 22
74
- headlineFontWeight = "normal"
75
- headlineFont = 'BentonGothic-Bold, sans'
76
-
77
- # Titles for axes and legends and such
78
- titleFont = 'BentonGothic-Bold, sans'
79
- titleFontWeight = 'normal'
80
- titleFontSize = 14
81
-
82
- # Labels for ticks and legend entries and such
83
- labelFont = 'BentonGothic, sans'
84
- labelFontSize = 12
85
- labelFontWeight = 'normal'
86
-
87
- return dict(
88
- config=dict(
89
- view=dict(
90
- width=800,
91
- height=450
92
- ),
93
- background=palette['white'],
94
- title=dict(
95
- anchor='start',
96
- font=headlineFont,
97
- fontColor=palette['black'],
98
- fontSize=headlineFontSize,
99
- fontWeight=headlineFontWeight
100
- ),
101
- arc=dict(fill=palette['default']),
102
- area=dict(fill=palette['default']),
103
- line=dict(stroke=palette['default'], strokeWidth=3),
104
- path=dict(stroke=palette['default']),
105
- rect=dict(fill=palette['default']),
106
- shape=dict(stroke=palette['default']),
107
- bar=dict(fill=palette['default']),
108
- point=dict(stroke=palette['default']),
109
- symbol=dict(fill=palette['default'], size=30),
110
- axis=dict(
111
- titleFont=titleFont,
112
- titleFontSize=titleFontSize,
113
- titleFontWeight=titleFontWeight,
114
- labelFont=labelFont,
115
- labelFontSize=labelFontSize,
116
- labelFontWeight=labelFontWeight
117
- ),
118
- axisX=dict(
119
- labelAngle=0,
120
- labelPadding=4,
121
- tickSize=3
122
- ),
123
- axisY=dict(
124
- labelBaseline='middle',
125
- maxExtent=45,
126
- minExtent=45,
127
- tickSize=2,
128
- titleAlign='left',
129
- titleAngle=0,
130
- titleX=-45,
131
- titleY=-11
132
- ),
133
- legend=dict(
134
- titleFont=titleFont,
135
- titleFontSize=titleFontSize,
136
- titleFontWeight=titleFontWeight,
137
- symbolType='square',
138
- labelFont=labelFont,
139
- labelFontSize=labelFontSize + 1
140
- ),
141
- range=dict(
142
- category=palette['schemes']['category-6'],
143
- diverging=palette['schemes']['fireandice-6'],
144
- heatmap=palette['schemes']['fire-7'],
145
- ordinal=palette['schemes']['fire-7'],
146
- ramp=palette['schemes']['fire-7']
147
- )
148
- )
149
- )
@@ -1,6 +0,0 @@
1
- # unified color scheme for altair and seaborn
2
- #
3
- # pip install pcolor
4
-
5
- # from pcolor.core import setup_altair
6
- # setup_altair()
@@ -1,55 +0,0 @@
1
-
2
- def quartz():
3
-
4
- config = {
5
- "background": "#f9f9f9",
6
- "arc": { "fill": "#ab5787" },
7
- "area": { "fill": "#ab5787" },
8
- "line": { "stroke": "#ab5787" },
9
- "path": { "stroke": "#ab5787" },
10
- "rect": { "fill": "#ab5787" },
11
- "shape": { "stroke": "#ab5787" },
12
- "symbol": { "fill": "#ab5787", "size": 30 },
13
- "axis": {
14
- "domainColor": "#979797",
15
- "domainWidth": 0.5,
16
- "gridWidth": 0.2,
17
- "labelColor": "#979797",
18
- "tickColor": "#979797",
19
- "tickWidth": 0.2,
20
- "titleColor": "#979797"
21
- },
22
- "axisBand": {
23
- "grid": False
24
- },
25
- "axisX": {
26
- "grid": True,
27
- "tickSize": 10
28
- },
29
- "axisY": {
30
- "domain": False,
31
- "grid": True,
32
- "tickSize": 0
33
- },
34
- "legend": {
35
- "labelFontSize": 11,
36
- "padding": 1,
37
- "symbolSize": 30,
38
- "symbolType": "square"
39
- },
40
- "range": {
41
- "category": [
42
- "#ab5787",
43
- "#51b2e5",
44
- "#703c5c",
45
- "#168dd9",
46
- "#d190b6",
47
- "#00609f",
48
- "#d365ba",
49
- "#154866",
50
- "#666666",
51
- "#c4c4c4"
52
- ]
53
- }
54
- }
55
- return config
@@ -1,94 +0,0 @@
1
- # A theme for making altair plots matching the spaCy brand.
2
- #
3
-
4
- # category: blue, green, purple following themes on spacy.io
5
- # Note that the blue is the "darker" blue which meets WCAG AA contrast ratio standards
6
- spacy_category = ["#077fa6", "#047c5c", "#6642d1"]
7
-
8
- spacy_sequential = [
9
- "#8efcff",
10
- "#6bddff",
11
- "#46c0f5",
12
- "#0da6d9",
13
- "#018abb",
14
- "#006f9f",
15
- "#005583",
16
- "#003d68",
17
- "#00254e",
18
- ]
19
-
20
- spacy_diverging = [
21
- "#047c5c",
22
- "#50957b",
23
- "#81ad9b",
24
- "#afc5bc",
25
- "#dedede",
26
- "#bacfdd",
27
- "#94c1db",
28
- "#66b2d9",
29
- "#09a4d7",
30
- ]
31
-
32
- # --font-size-xs: 1.1rem;
33
- # --font-size-sm: 1.3rem;
34
- # --font-size-md: 1.35rem;
35
- # --font-size-lg: 1.4rem;
36
- # --font-size-code: 1.2rem;
37
-
38
-
39
- def spacy_base():
40
- primary_color = "#077fa6"
41
- font_color = "#1a1e23"
42
- grey_color = "#f5f5f5"
43
- base_size_px = 16
44
- md_font = base_size_px
45
- sm_font = base_size_px * 0.8
46
- lg_font = base_size_px * 1.35
47
-
48
- config = {
49
- "config": {
50
- "arc": {"fill": primary_color},
51
- "area": {"fill": primary_color},
52
- "circle": {"fill": primary_color, "stroke": font_color, "strokeWidth": 0.5},
53
- "line": {"stroke": primary_color},
54
- "path": {"stroke": primary_color},
55
- "point": {"stroke": primary_color},
56
- "rect": {"fill": primary_color},
57
- "shape": {"stroke": primary_color},
58
- "symbol": {"fill": primary_color},
59
- "title": {
60
- "color": font_color,
61
- "fontSize": lg_font,
62
- },
63
- "axis": {
64
- "titleColor": font_color,
65
- "titleFontSize": md_font,
66
- "labelColor": font_color,
67
- "labelFontSize": sm_font,
68
- "gridColor": grey_color,
69
- "domainColor": font_color,
70
- "tickColor": "#fff",
71
- },
72
- "header": {
73
- "labelFontSize": md_font,
74
- "titleFontSize": md_font,
75
- },
76
- "legend": {
77
- "titleColor": font_color,
78
- "titleFontSize": md_font,
79
- "labelColor": font_color,
80
- "labelFontSize": sm_font,
81
- },
82
- "range": {
83
- "category": spacy_category,
84
- "diverging": spacy_diverging,
85
- "heatmap": spacy_sequential,
86
- "ramp": spacy_sequential,
87
- "ordinal": spacy_sequential,
88
- },
89
- }
90
- }
91
- return config
92
-
93
- # alt.themes.register("spacy-base", spacy_base_theme)
94
- # alt.themes.register("spacy-mono", spacy_mono_theme)
@@ -1,158 +0,0 @@
1
- # A theme for making altair plots matching the spaCy brand.
2
- #
3
-
4
- # category: blue, green, purple following themes on spacy.io
5
- # Note that the blue is the "darker" blue which meets WCAG AA contrast ratio standards
6
- spacy_category = ["#077fa6", "#047c5c", "#6642d1"]
7
-
8
- spacy_sequential = [
9
- "#8efcff",
10
- "#6bddff",
11
- "#46c0f5",
12
- "#0da6d9",
13
- "#018abb",
14
- "#006f9f",
15
- "#005583",
16
- "#003d68",
17
- "#00254e",
18
- ]
19
-
20
- spacy_diverging = [
21
- "#047c5c",
22
- "#50957b",
23
- "#81ad9b",
24
- "#afc5bc",
25
- "#dedede",
26
- "#bacfdd",
27
- "#94c1db",
28
- "#66b2d9",
29
- "#09a4d7",
30
- ]
31
-
32
- # --font-size-xs: 1.1rem;
33
- # --font-size-sm: 1.3rem;
34
- # --font-size-md: 1.35rem;
35
- # --font-size-lg: 1.4rem;
36
- # --font-size-code: 1.2rem;
37
-
38
-
39
- def spacy_base_theme():
40
- primary_color = "#077fa6"
41
- font_color = "#1a1e23"
42
- grey_color = "#f5f5f5"
43
- base_size_px = 16
44
- md_font = base_size_px
45
- sm_font = base_size_px * 0.8
46
- lg_font = base_size_px * 1.35
47
-
48
- config = {
49
- "config": {
50
- "arc": {"fill": primary_color},
51
- "area": {"fill": primary_color},
52
- "circle": {"fill": primary_color, "stroke": font_color, "strokeWidth": 0.5},
53
- "line": {"stroke": primary_color},
54
- "path": {"stroke": primary_color},
55
- "point": {"stroke": primary_color},
56
- "rect": {"fill": primary_color},
57
- "shape": {"stroke": primary_color},
58
- "symbol": {"fill": primary_color},
59
- "title": {
60
- "color": font_color,
61
- "fontSize": lg_font,
62
- },
63
- "axis": {
64
- "titleColor": font_color,
65
- "titleFontSize": md_font,
66
- "labelColor": font_color,
67
- "labelFontSize": sm_font,
68
- "gridColor": grey_color,
69
- "domainColor": font_color,
70
- "tickColor": "#fff",
71
- },
72
- "header": {
73
- "labelFontSize": md_font,
74
- "titleFontSize": md_font,
75
- },
76
- "legend": {
77
- "titleColor": font_color,
78
- "titleFontSize": md_font,
79
- "labelColor": font_color,
80
- "labelFontSize": sm_font,
81
- },
82
- "range": {
83
- "category": spacy_category,
84
- "diverging": spacy_diverging,
85
- "heatmap": spacy_sequential,
86
- "ramp": spacy_sequential,
87
- "ordinal": spacy_sequential,
88
- },
89
- }
90
- }
91
- return config
92
-
93
-
94
- def spacy_mono_theme():
95
- font = "JetBrains Mono"
96
- primary_color = "#077fa6"
97
- font_color = "#1a1e23"
98
- grey_color = "#f5f5f5"
99
- base_size_px = 16
100
- md_font = base_size_px
101
- sm_font = base_size_px * 0.8
102
- lg_font = base_size_px * 1.35
103
-
104
- config = {
105
- "config": {
106
- "arc": {"fill": primary_color},
107
- "area": {"fill": primary_color},
108
- "circle": {"fill": primary_color, "stroke": font_color, "strokeWidth": 0.5},
109
- "line": {"stroke": primary_color},
110
- "path": {"stroke": primary_color},
111
- "point": {"stroke": primary_color},
112
- "rect": {"fill": primary_color},
113
- "shape": {"stroke": primary_color},
114
- "symbol": {"fill": primary_color},
115
- "title": {
116
- "font": font,
117
- "color": font_color,
118
- "fontSize": lg_font,
119
- },
120
- "axis": {
121
- "titleFont": font,
122
- "titleColor": font_color,
123
- "titleFontSize": md_font,
124
- "labelFont": font,
125
- "labelColor": font_color,
126
- "labelFontSize": sm_font,
127
- "gridColor": grey_color,
128
- "domainColor": font_color,
129
- "tickColor": "#fff",
130
- },
131
- "header": {
132
- "labelFont": font,
133
- "titleFont": font,
134
- "labelFontSize": md_font,
135
- "titleFontSize": md_font,
136
- },
137
- "legend": {
138
- "titleFont": font,
139
- "titleColor": font_color,
140
- "titleFontSize": md_font,
141
- "labelFont": font,
142
- "labelColor": font_color,
143
- "labelFontSize": sm_font,
144
- },
145
- "range": {
146
- "category": spacy_category,
147
- "diverging": spacy_diverging,
148
- "heatmap": spacy_sequential,
149
- "ramp": spacy_sequential,
150
- "ordinal": spacy_sequential,
151
- },
152
- }
153
- }
154
- return config
155
-
156
-
157
- # alt.themes.register("spacy-base", spacy_base_theme)
158
- # alt.themes.register("spacy-mono", spacy_mono_theme)
@@ -1,125 +0,0 @@
1
- # A theme for the Altair data visualization library based on the
2
- # South Florida Sun Sentinel's style guide. (by SunSentinel)
3
- #
4
- def sunsentinel_theme():
5
- # Color palette
6
- black = '#000000'
7
- greydk = '#333333'
8
- greymed = '#999999'
9
- grey = '#cccccc'
10
- greylt = '#f1f1f1'
11
- white = '#fff'
12
- red = '#d80000'
13
- brightred = '#ff0000'
14
- sunrust = '#761113'
15
- palepink = '#ffc9bb'
16
- sky = '#4492e0'
17
- cloud = '#9dd1f6'
18
- navy = '#024584'
19
-
20
- # Typography
21
- headlineFontSize = 20
22
- headlineFontWeight = 'normal'
23
- headlineFont = 'Open Sans, Arial, sans'
24
-
25
- # Axes and legends
26
- titleFont = 'Open Sans, Arial, sans'
27
- titleFontWeight = 'normal'
28
- titleFontSize = 14
29
-
30
- # Ticks and labels
31
- labelFont = 'Open Sans, Arial, sans'
32
- labelFontSize = 12
33
- labelFontWeight = 'normal'
34
-
35
- return {
36
- "width": 720,
37
- "height": 405,
38
- "config": {
39
- "background": white,
40
- "title": {
41
- "font": headlineFont,
42
- "fontSize": headlineFontSize,
43
- "fontWeight": headlineFontWeight,
44
- "anchor": "start",
45
- "color": black
46
- },
47
- "axis": {
48
- "titleFont": titleFont,
49
- "titleFontSize": titleFontSize,
50
- "titleFontWeight": titleFontWeight,
51
- "labelFont": labelFont,
52
- "labelFontSize": labelFontSize,
53
- "labelFontWeight": labelFontWeight
54
- },
55
- "axisX": {
56
- "labelAngle": 0,
57
- "labelPadding": 3,
58
- "tickColor": grey,
59
- "tickSize": 3,
60
- },
61
- "axisY": {
62
- "labelAngle": 0,
63
- "labelBaseline": "middle",
64
- "titleAlign": "left",
65
- "titleAngle": 0,
66
-
67
- }
68
- "range": {
69
- "category": [sunrust, red, palepink, grey, greymed, greydk],
70
- "diverging": [red, palepink, grey, cloud, sky],
71
- },
72
- "legend": {
73
- "labelFont": labelFont,
74
- "labelFontSize": labelFontSize,
75
- "titleFont": titleFont,
76
- "titleFontSize": titleFontSize
77
- },
78
- "view": {
79
- "stroke": 0
80
- },
81
- ### MARKS CONFIGURATIONS ###
82
- "area": {
83
- "fill": sunrust,
84
- },
85
- "circle": {
86
- "fill": sunrust,
87
- "size": 40
88
- },
89
- "line": {
90
- "color": sunrust,
91
- "stroke": sunrust,
92
- "strokeWidth": 3,
93
- },
94
- "trail": {
95
- "color": sunrust,
96
- "stroke": sunrust,
97
- "strokeWidth": 0,
98
- "size": 1,
99
- },
100
- "path": {
101
- "stroke": sunrust,
102
- "strokeWidth": 0.5,
103
- },
104
- "point": {
105
- "color": sunrust,
106
- "size": 40
107
- },
108
- "text": {
109
- "color": sunrust,
110
- "fontSize": 14,
111
- "align": "right",
112
- "size": 14,
113
- },
114
- "bar": {
115
- "size": 10,
116
- "binSpacing": 1,
117
- "continuousBandSize": 10,
118
- "fill": sunrust,
119
- "stroke": False,
120
- },
121
- "tick": {
122
- "color": sunrust
123
- }
124
- }
125
- }