j1-template 2022.5.0.rc1 → 2022.5.0.rc4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (378) hide show
  1. checksums.yaml +4 -4
  2. data/assets/data/banner.html +24 -1
  3. data/assets/themes/j1/adapter/js/masterslider.js +22 -5
  4. data/assets/themes/j1/core/css/themes/unolight/bootstrap.css +56 -0
  5. data/assets/themes/j1/core/css/themes/unolight/bootstrap.min.css +1 -1
  6. data/lib/j1/version.rb +1 -1
  7. data/lib/starter_web/Gemfile +270 -270
  8. data/lib/starter_web/_config.yml +19 -9
  9. data/lib/starter_web/_data/blocks/banner.yml +17 -0
  10. data/lib/starter_web/_data/modules/defaults/masterslider.yml +1 -1
  11. data/lib/starter_web/_data/modules/justifiedGallery.yml +82 -0
  12. data/lib/starter_web/_data/modules/masterslider.yml +5 -9
  13. data/lib/starter_web/_data/modules/navigator_menu.yml +208 -168
  14. data/lib/starter_web/_includes/attributes.asciidoc +18 -14
  15. data/lib/starter_web/_includes/tables/template_variables.asciidoc +1 -1
  16. data/lib/starter_web/_plugins/asciidoctor-extensions/lightbox-block.rb +4 -4
  17. data/lib/starter_web/assets/images/pages/features/blog-post-navigator-1280x1000.jpg +0 -0
  18. data/lib/starter_web/assets/images/pages/features/bootswatch-themes-1280x800.png +0 -0
  19. data/lib/starter_web/assets/images/pages/features/clipboard-1280x600.jpg +0 -0
  20. data/lib/starter_web/assets/images/pages/features/comments-1280x600.jpg +0 -0
  21. data/lib/starter_web/assets/images/pages/features/cookie-consent-1280x800.jpg +0 -0
  22. data/lib/starter_web/assets/images/pages/features/desktop-web-navigation-1280x1000.jpg +0 -0
  23. data/lib/starter_web/assets/images/pages/features/example-content-1280x800.jpg +0 -0
  24. data/lib/starter_web/assets/images/pages/features/example-content-present-videos-1280x800.jpg +0 -0
  25. data/lib/starter_web/assets/images/pages/features/fab-1280x500.jpg +0 -0
  26. data/lib/starter_web/assets/images/pages/features/full-text-search-1280x800.jpg +0 -0
  27. data/lib/starter_web/assets/images/pages/features/global-mobile-traffic-1920x1080.png +0 -0
  28. data/lib/starter_web/assets/images/pages/features/google-lighthouse-1080x300.png +0 -0
  29. data/lib/starter_web/assets/images/pages/features/intro-panel-1280x800.jpg +0 -0
  30. data/lib/starter_web/assets/images/pages/features/master-header-1280x600.jpg +0 -0
  31. data/lib/starter_web/assets/images/pages/features/mobile-navigation-600x800.png +0 -0
  32. data/lib/starter_web/assets/images/pages/features/native-speakers-by-language.png +0 -0
  33. data/lib/starter_web/assets/images/pages/features/nav-module-1280x300.jpg +0 -0
  34. data/lib/starter_web/assets/images/pages/features/nbi-barchart-1280x800.jpg +0 -0
  35. data/lib/starter_web/assets/images/pages/features/teaser-banner-1280x600.jpg +0 -0
  36. data/lib/starter_web/assets/images/pages/features/translator-1280x800.jpg +0 -0
  37. data/lib/starter_web/assets/images/sticker/600x600/sticker-new-version.png +0 -0
  38. data/lib/starter_web/assets/images/sticker/scalable/readme +0 -0
  39. data/lib/starter_web/package.json +6 -6
  40. data/lib/starter_web/pages/public/_jupyter/docs/_includes/attributes.asciidoc +67 -0
  41. data/lib/starter_web/pages/public/_jupyter/docs/_includes/documents/j1_docs_example_static.asciidoc +232 -0
  42. data/lib/starter_web/pages/public/_jupyter/docs/binderhub.adoc +631 -0
  43. data/lib/starter_web/pages/public/_jupyter/docs/j1-nbinteract.adoc +638 -0
  44. data/lib/starter_web/pages/public/_jupyter/docs/jupyterhub.adoc +248 -0
  45. data/lib/starter_web/pages/public/_jupyter/docs/nbinteract-widget-manual.adoc +928 -0
  46. data/lib/starter_web/pages/public/_jupyter/examples/distributed/j1-circular-times-table.adoc +139 -0
  47. data/lib/starter_web/pages/public/_jupyter/examples/distributed/j1-common-used-widgets.adoc +229 -0
  48. data/lib/starter_web/pages/public/_jupyter/examples/distributed/j1-odes-in-python.adoc +112 -0
  49. data/lib/starter_web/pages/public/_jupyter/examples/localized/j1-altair/j1-altair-visualisations.adoc +142 -0
  50. data/lib/starter_web/pages/public/_jupyter/examples/localized/j1-bokeh/j1-bokeh-visualisations.adoc +171 -0
  51. data/lib/starter_web/pages/public/_jupyter/examples/localized/j1-bokeh/j1-bqplot-eamples.adoc +111 -0
  52. data/lib/starter_web/pages/public/_jupyter/examples/localized/j1-plotly/j1-plotly-visualisations.adoc +94 -0
  53. data/lib/starter_web/pages/public/_jupyter/examples/localized/j1_climate-change-forecast.adoc +106 -0
  54. data/lib/starter_web/pages/public/_jupyter/notebooks/j1/.ipynb_checkpoints/j1_altair_interactive-checkpoint.ipynb +16260 -0
  55. data/lib/starter_web/pages/public/_jupyter/notebooks/j1/.ipynb_checkpoints/j1_bgplot_line_plot-checkpoint.ipynb +247 -0
  56. data/lib/starter_web/pages/public/_jupyter/notebooks/j1/.ipynb_checkpoints/j1_circular_times_table-Copy1-checkpoint.ipynb +12382 -0
  57. data/lib/starter_web/pages/public/_jupyter/notebooks/j1/.ipynb_checkpoints/j1_circular_times_table-checkpoint.ipynb +12387 -0
  58. data/lib/starter_web/pages/public/_jupyter/notebooks/j1/.ipynb_checkpoints/j1_circular_times_table-short-checkpoint.ipynb +12170 -0
  59. data/lib/starter_web/pages/public/_jupyter/notebooks/j1/.ipynb_checkpoints/j1_climate_change_forecast-checkpoint.ipynb +1058 -0
  60. data/lib/starter_web/pages/public/_jupyter/notebooks/j1/.ipynb_checkpoints/j1_docs_example_dynamic-checkpoint.ipynb +14478 -0
  61. data/lib/starter_web/pages/public/_jupyter/notebooks/j1/.ipynb_checkpoints/j1_interactive_widgets-Copy1-checkpoint.ipynb +379 -0
  62. data/lib/starter_web/pages/public/_jupyter/notebooks/j1/.ipynb_checkpoints/j1_interactive_widgets-checkpoint.ipynb +442 -0
  63. data/lib/starter_web/pages/public/_jupyter/notebooks/j1/.ipynb_checkpoints/j1_nbi_widgets-checkpoint.ipynb +523 -0
  64. data/lib/starter_web/pages/public/_jupyter/notebooks/j1/.ipynb_checkpoints/j1_nbi_widgets.line_charts-checkpoint.ipynb +84 -0
  65. data/lib/starter_web/pages/public/_jupyter/notebooks/j1/.ipynb_checkpoints/j1_nbi_widgets.questions-checkpoint.ipynb +194 -0
  66. data/lib/starter_web/pages/public/_jupyter/notebooks/j1/.ipynb_checkpoints/j1_nbi_widgets_bar_chart-checkpoint.ipynb +89 -0
  67. data/lib/starter_web/pages/public/_jupyter/notebooks/j1/.ipynb_checkpoints/j1_nbi_widgets_bar_charts-Copy1-checkpoint.ipynb +164 -0
  68. data/lib/starter_web/pages/public/_jupyter/notebooks/j1/.ipynb_checkpoints/j1_nbi_widgets_bar_charts-checkpoint.ipynb +173 -0
  69. data/lib/starter_web/pages/public/_jupyter/notebooks/j1/.ipynb_checkpoints/j1_nbi_widgets_bar_charts.1-checkpoint.ipynb +256 -0
  70. data/lib/starter_web/pages/public/_jupyter/notebooks/j1/.ipynb_checkpoints/j1_nbi_widgets_barcharts-checkpoint.ipynb +126 -0
  71. data/lib/starter_web/pages/public/_jupyter/notebooks/j1/.ipynb_checkpoints/j1_nbi_widgets_hist_chart-checkpoint.ipynb +87 -0
  72. data/lib/starter_web/pages/public/_jupyter/notebooks/j1/.ipynb_checkpoints/j1_nbi_widgets_line_chart-checkpoint.ipynb +90 -0
  73. data/lib/starter_web/pages/public/_jupyter/notebooks/j1/.ipynb_checkpoints/j1_nbi_widgets_line_charts-checkpoint.ipynb +87 -0
  74. data/lib/starter_web/pages/public/_jupyter/notebooks/j1/.ipynb_checkpoints/j1_nbi_widgets_question_multiple_choice-checkpoint.ipynb +64 -0
  75. data/lib/starter_web/pages/public/_jupyter/notebooks/j1/.ipynb_checkpoints/j1_nbi_widgets_question_short_answer-checkpoint.ipynb +122 -0
  76. data/lib/starter_web/pages/public/_jupyter/notebooks/j1/.ipynb_checkpoints/j1_nbi_widgets_questions-checkpoint.ipynb +181 -0
  77. data/lib/starter_web/pages/public/_jupyter/notebooks/j1/.ipynb_checkpoints/j1_nbi_widgets_scatter_chart-checkpoint.ipynb +89 -0
  78. data/lib/starter_web/pages/public/_jupyter/notebooks/j1/.ipynb_checkpoints/j1_nbi_widgets_scatter_charts-checkpoint.ipynb +175 -0
  79. data/lib/starter_web/pages/public/_jupyter/notebooks/j1/.ipynb_checkpoints/j1_nbi_widgets_scatter_drag_chart-checkpoint.ipynb +87 -0
  80. data/lib/starter_web/pages/public/_jupyter/notebooks/j1/.ipynb_checkpoints/j1_ode_selected-checkpoint.ipynb +14478 -0
  81. data/lib/starter_web/pages/public/_jupyter/notebooks/j1/.ipynb_checkpoints/j1_odes_in_python-checkpoint.ipynb +15227 -0
  82. data/lib/starter_web/pages/public/_jupyter/notebooks/j1/factor_by_factor.mp4 +0 -0
  83. data/lib/starter_web/pages/public/_jupyter/notebooks/j1/j1_circular_times_table.ipynb +12382 -0
  84. data/lib/starter_web/pages/public/_jupyter/notebooks/j1/j1_climate_change_forecast.ipynb +1058 -0
  85. data/lib/starter_web/pages/public/_jupyter/notebooks/j1/j1_docs_example_dynamic.ipynb +14478 -0
  86. data/lib/starter_web/pages/public/_jupyter/notebooks/j1/j1_interactive_widgets.ipynb +442 -0
  87. data/lib/starter_web/pages/public/_jupyter/notebooks/j1/j1_nbi_widgets.ipynb +523 -0
  88. data/lib/starter_web/pages/public/_jupyter/notebooks/j1/j1_nbi_widgets_bar_chart.ipynb +89 -0
  89. data/lib/starter_web/pages/public/_jupyter/notebooks/j1/j1_nbi_widgets_hist_chart.ipynb +87 -0
  90. data/lib/starter_web/pages/public/_jupyter/notebooks/j1/j1_nbi_widgets_line_chart.ipynb +90 -0
  91. data/lib/starter_web/pages/public/_jupyter/notebooks/j1/j1_nbi_widgets_question_multiple_choice.ipynb +64 -0
  92. data/lib/starter_web/pages/public/_jupyter/notebooks/j1/j1_nbi_widgets_question_short_answer.ipynb +122 -0
  93. data/lib/starter_web/pages/public/_jupyter/notebooks/j1/j1_nbi_widgets_scatter_chart.ipynb +89 -0
  94. data/lib/starter_web/pages/public/_jupyter/notebooks/j1/j1_nbi_widgets_scatter_drag_chart.ipynb +87 -0
  95. data/lib/starter_web/pages/public/_jupyter/notebooks/j1/j1_odes_in_python.ipynb +15227 -0
  96. data/lib/starter_web/pages/public/_jupyter/notebooks/j1/line_by_line.mp4 +0 -0
  97. data/lib/starter_web/pages/public/_jupyter/notebooks/j1/point_by_point.mp4 +0 -0
  98. data/lib/starter_web/pages/public/_jupyter/notebooks/j1-altair-tutorial/.ipynb_checkpoints/j1_altair_interactive-checkpoint.ipynb +16296 -0
  99. data/lib/starter_web/pages/public/_jupyter/notebooks/j1-altair-tutorial/.ipynb_checkpoints/j1_altair_non_interactive-checkpoint.ipynb +15385 -0
  100. data/lib/starter_web/pages/public/_jupyter/notebooks/j1-altair-tutorial/j1_altair_interactive.ipynb +16296 -0
  101. data/lib/starter_web/pages/public/_jupyter/notebooks/j1-altair-tutorial/j1_altair_non_interactive.ipynb +15385 -0
  102. data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/.ipynb_checkpoints/00 - Introduction and Setup-checkpoint.ipynb +717 -0
  103. data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/.ipynb_checkpoints/01 - Basic Plotting-checkpoint.ipynb +1381 -0
  104. data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/.ipynb_checkpoints/02 - Styling and Theming-checkpoint.ipynb +1440 -0
  105. data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/.ipynb_checkpoints/03 - Data Sources and Transformations-checkpoint.ipynb +927 -0
  106. data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/.ipynb_checkpoints/04 - Adding Annotations-checkpoint.ipynb +1105 -0
  107. data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/.ipynb_checkpoints/05 - Presentation Layouts-checkpoint.ipynb +578 -0
  108. data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/.ipynb_checkpoints/06 - Linking and Interactions-checkpoint.ipynb +1196 -0
  109. data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/.ipynb_checkpoints/07 - Bar and Categorical Data Plots-checkpoint.ipynb +1681 -0
  110. data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/.ipynb_checkpoints/08 - Graph and Network Plots-checkpoint.ipynb +680 -0
  111. data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/.ipynb_checkpoints/09 - Geographic Plots-checkpoint.ipynb +693 -0
  112. data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/.ipynb_checkpoints/10 - Exporting and Embedding-checkpoint.ipynb +751 -0
  113. data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/.ipynb_checkpoints/11 - Running Bokeh Applications-checkpoint.ipynb +770 -0
  114. data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/.ipynb_checkpoints/bokeh_tut_00_introduction_and_setup-checkpoint.ipynb +666 -0
  115. data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/.ipynb_checkpoints/j1_bokeh_01_basic_plotting-checkpoint.ipynb +1365 -0
  116. data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/.ipynb_checkpoints/j1_bokeh_02_styling_and_theming-checkpoint.ipynb +1405 -0
  117. data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/.ipynb_checkpoints/j1_bokeh_03_data_sources_and_transformations-checkpoint.ipynb +856 -0
  118. data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/.ipynb_checkpoints/j1_bokeh_04_adding_annotations-checkpoint.ipynb +1167 -0
  119. data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/.ipynb_checkpoints/j1_bokeh_05_presentation_layouts-checkpoint.ipynb +601 -0
  120. data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/.ipynb_checkpoints/j1_bokeh_06_linking_and_interactions-checkpoint.ipynb +1356 -0
  121. data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/.ipynb_checkpoints/j1_bokeh_07_bar_and_categorical_data_plots-checkpoint.ipynb +1742 -0
  122. data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/.ipynb_checkpoints/j1_bokeh_08_graph_and_network_plots-checkpoint.ipynb +625 -0
  123. data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/.ipynb_checkpoints/j1_bokeh_09_geographic_plots-checkpoint.ipynb +685 -0
  124. data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/.ipynb_checkpoints/j1_bokeh_10_exporting_and_embedding-checkpoint.ipynb +726 -0
  125. data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/.ipynb_checkpoints/j1_bokeh_10_exporting_and_embedding-checkpoint.org +726 -0
  126. data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/.ipynb_checkpoints/j1_bokeh_10_exporting_and_embedding.new-checkpoint.ipynb +560 -0
  127. data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/.ipynb_checkpoints/j1_bokeh_11_running_bokeh_applications-checkpoint.ipynb +716 -0
  128. data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/j1_bokeh_01_basic_plotting.ipynb +1365 -0
  129. data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/j1_bokeh_02_styling_and_theming.ipynb +1405 -0
  130. data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/j1_bokeh_03_data_sources_and_transformations.ipynb +856 -0
  131. data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/j1_bokeh_04_adding_annotations.ipynb +1167 -0
  132. data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/j1_bokeh_05_presentation_layouts.ipynb +601 -0
  133. data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/j1_bokeh_06_linking_and_interactions.ipynb +1356 -0
  134. data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/j1_bokeh_07_bar_and_categorical_data_plots.ipynb +1742 -0
  135. data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/j1_bokeh_08_graph_and_network_plots.ipynb +625 -0
  136. data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/j1_bokeh_09_geographic_plots.ipynb +685 -0
  137. data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bqplot/.ipynb_checkpoints/j1_mathplot_vs_bqplot-checkpoint.ipynb +336 -0
  138. data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bqplot/advanced/Feature_Vector_Distribution-Iris-Digits.ipynb +433 -0
  139. data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bqplot/j1_bgplot_line_plot.ipynb +244 -0
  140. data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bqplot/j1_circular_times_table-short.ipynb +12170 -0
  141. data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bqplot/j1_mathplot_vs_bqplot.ipynb +336 -0
  142. data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/.ipynb_checkpoints/Index-checkpoint.ipynb +163 -0
  143. data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/.ipynb_checkpoints/Tutorials-checkpoint.ipynb +51 -0
  144. data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Advanced Plotting/Advanced Plotting.ipynb +289 -0
  145. data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Advanced Plotting/Animations.ipynb +266 -0
  146. data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Advanced Plotting/Axis Properties.ipynb +396 -0
  147. data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Advanced Plotting/Plotting Dates.ipynb +318 -0
  148. data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Applications/Equity Index Performance/Time Series.ipynb +158 -0
  149. data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Applications/Equity Index Performance/spx_prices.csv +6799 -0
  150. data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Applications/Feature_Vector_Distribution-Iris-Digits.ipynb +470 -0
  151. data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Applications/Index.ipynb +49 -0
  152. data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Applications/Logs Analytics/Logs Dashboard.ipynb +378 -0
  153. data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Applications/Mobile Patent Suits.ipynb +123 -0
  154. data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Applications/Neural Network.ipynb +177 -0
  155. data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Applications/Outlier Detection.ipynb +311 -0
  156. data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Applications/Wealth Of Nations/Bubble Chart.ipynb +255 -0
  157. data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Applications/Wealth Of Nations/Choropleth.ipynb +275 -0
  158. data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Applications/Wealth Of Nations/nations.json +1 -0
  159. data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Applications/Wealth Of Nations/world_map_codes.csv +234 -0
  160. data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Basic Plotting/.ipynb_checkpoints/Basic Plotting-checkpoint.ipynb +186 -0
  161. data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Basic Plotting/.ipynb_checkpoints/Pyplot-checkpoint.ipynb +794 -0
  162. data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Basic Plotting/.ipynb_checkpoints/Untitled-checkpoint.ipynb +323 -0
  163. data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Basic Plotting/Basic Plotting.ipynb +261 -0
  164. data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Basic Plotting/Pyplot.ipynb +1489 -0
  165. data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Index.ipynb +163 -0
  166. data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Interactions/Interaction Layer.ipynb +966 -0
  167. data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Interactions/Mark Interactions.ipynb +476 -0
  168. data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Interactions/Selectors.ipynb +427 -0
  169. data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Introduction.ipynb +528 -0
  170. data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Marks/Object Model/Bars.ipynb +480 -0
  171. data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Marks/Object Model/Bins.ipynb +217 -0
  172. data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Marks/Object Model/Boxplot.ipynb +253 -0
  173. data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Marks/Object Model/Candles.ipynb +225 -0
  174. data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Marks/Object Model/FlexLine.ipynb +123 -0
  175. data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Marks/Object Model/Graph.ipynb +357 -0
  176. data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Marks/Object Model/GridHeatMap.ipynb +422 -0
  177. data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Marks/Object Model/HeatMap.ipynb +157 -0
  178. data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Marks/Object Model/Hist.ipynb +176 -0
  179. data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Marks/Object Model/Image.ipynb +195 -0
  180. data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Marks/Object Model/Label.ipynb +189 -0
  181. data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Marks/Object Model/Lines.ipynb +565 -0
  182. data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Marks/Object Model/Map.ipynb +182 -0
  183. data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Marks/Object Model/Market Map.ipynb +315 -0
  184. data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Marks/Object Model/Pie.ipynb +465 -0
  185. data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Marks/Object Model/Scatter.ipynb +835 -0
  186. data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Marks/Pyplot/Bars.ipynb +362 -0
  187. data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Marks/Pyplot/Bins.ipynb +252 -0
  188. data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Marks/Pyplot/Boxplot.ipynb +273 -0
  189. data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Marks/Pyplot/Candles.ipynb +242 -0
  190. data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Marks/Pyplot/GridHeatMap.ipynb +417 -0
  191. data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Marks/Pyplot/HeatMap.ipynb +155 -0
  192. data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Marks/Pyplot/Hist.ipynb +238 -0
  193. data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Marks/Pyplot/Image.ipynb +152 -0
  194. data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Marks/Pyplot/Label.ipynb +206 -0
  195. data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Marks/Pyplot/Lines.ipynb +474 -0
  196. data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Marks/Pyplot/Map.ipynb +181 -0
  197. data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Marks/Pyplot/Pie.ipynb +310 -0
  198. data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Marks/Pyplot/Scatter.ipynb +702 -0
  199. data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Scales/Color Scales.ipynb +495 -0
  200. data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Tutorials/.ipynb_checkpoints/Feature_Vector_Distribution-Iris-Digits-checkpoint.ipynb +433 -0
  201. data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Tutorials/.ipynb_checkpoints/Linking Plots With Widgets-checkpoint.ipynb +326 -0
  202. data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Tutorials/.ipynb_checkpoints/Updating Plots-Copy1-checkpoint.ipynb +177 -0
  203. data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Tutorials/.ipynb_checkpoints/Updating Plots-checkpoint.ipynb +177 -0
  204. data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Tutorials/Brush Interval Selector.ipynb +154 -0
  205. data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Tutorials/Fast Interval Selector.ipynb +152 -0
  206. data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Tutorials/Gaussian Density Widget.ipynb +128 -0
  207. data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Tutorials/Gaussian Density.ipynb +113 -0
  208. data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Tutorials/Linking Plots With Widgets.ipynb +326 -0
  209. data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Tutorials/Object Model.ipynb +179 -0
  210. data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Tutorials/Pyplot.ipynb +174 -0
  211. data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Tutorials/Updating Plots.ipynb +177 -0
  212. data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Tutorials.ipynb +51 -0
  213. data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/data_files/country_codes.csv +213 -0
  214. data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/data_files/gdp_per_capita.csv +56 -0
  215. data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/data_files/state_codes.csv +52 -0
  216. data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/data_files/trees.jpg +0 -0
  217. data/lib/starter_web/pages/public/_jupyter/notebooks/nbi-docs/.ipynb_checkpoints/nbi_docs_examples_central_limit_theorem-checkpoint.ipynb +247 -0
  218. data/lib/starter_web/pages/public/_jupyter/notebooks/nbi-docs/.ipynb_checkpoints/nbi_docs_examples_variability_of_the_sample_mean-checkpoint.ipynb +323 -0
  219. data/lib/starter_web/pages/public/_jupyter/notebooks/nbi-docs/.ipynb_checkpoints/nbi_docs_recipes_graphing-checkpoint.ipynb +387 -0
  220. data/lib/starter_web/pages/public/_jupyter/notebooks/nbi-docs/.ipynb_checkpoints/nbi_docs_recipes_interactive_questions-checkpoint.ipynb +185 -0
  221. data/lib/starter_web/pages/public/_jupyter/notebooks/nbi-docs/.ipynb_checkpoints/nbi_docs_recipes_layout-checkpoint.ipynb +384 -0
  222. data/lib/starter_web/pages/public/_jupyter/notebooks/nbi-docs/.ipynb_checkpoints/nbi_docs_tutorial_interact-checkpoint.ipynb +254 -0
  223. data/lib/starter_web/pages/public/_jupyter/notebooks/nbi-docs/.ipynb_checkpoints/nbi_docs_tutorial_monty_hall-checkpoint.ipynb +732 -0
  224. data/lib/starter_web/pages/public/_jupyter/notebooks/nbi-docs/nbi_docs_examples_central_limit_theorem.ipynb +247 -0
  225. data/lib/starter_web/pages/public/_jupyter/notebooks/nbi-docs/nbi_docs_examples_correlation.ipynb +651 -0
  226. data/lib/starter_web/pages/public/_jupyter/notebooks/nbi-docs/nbi_docs_examples_empirical_distributions.ipynb +773 -0
  227. data/lib/starter_web/pages/public/_jupyter/notebooks/nbi-docs/nbi_docs_examples_linear_regression.ipynb +111 -0
  228. data/lib/starter_web/pages/public/_jupyter/notebooks/nbi-docs/nbi_docs_examples_probability_distribution_plots.ipynb +199 -0
  229. data/lib/starter_web/pages/public/_jupyter/notebooks/nbi-docs/nbi_docs_examples_sampling_from_a_population.ipynb +421 -0
  230. data/lib/starter_web/pages/public/_jupyter/notebooks/nbi-docs/nbi_docs_examples_variability_of_the_sample_mean.ipynb +323 -0
  231. data/lib/starter_web/pages/public/_jupyter/notebooks/nbi-docs/nbi_docs_recipes_graphing.ipynb +387 -0
  232. data/lib/starter_web/pages/public/_jupyter/notebooks/nbi-docs/nbi_docs_recipes_interactive_questions.ipynb +185 -0
  233. data/lib/starter_web/pages/public/_jupyter/notebooks/nbi-docs/nbi_docs_recipes_layout.ipynb +384 -0
  234. data/lib/starter_web/pages/public/_jupyter/notebooks/nbi-docs/nbi_docs_tutorial_interact.ipynb +254 -0
  235. data/lib/starter_web/pages/public/_jupyter/notebooks/nbi-docs/nbi_docs_tutorial_monty_hall.ipynb +732 -0
  236. data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Advanced Plotting.html +373 -0
  237. data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Animations.html +361 -0
  238. data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Axis Properties.html +569 -0
  239. data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Bars.html +487 -0
  240. data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Basic Plotting.html +341 -0
  241. data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Bins.html +259 -0
  242. data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Boxplot.html +277 -0
  243. data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Brush Interval Selector.html +182 -0
  244. data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Bubble Chart.html +299 -0
  245. data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Candles.html +252 -0
  246. data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Choropleth.html +318 -0
  247. data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Color Scales.html +514 -0
  248. data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Fast Interval Selector.html +182 -0
  249. data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Feature_Vector_Distribution-Iris-Digits.html +479 -0
  250. data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/FlexLine.html +128 -0
  251. data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Gaussian Density Widget.html +152 -0
  252. data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Gaussian Density.html +137 -0
  253. data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Graph.html +484 -0
  254. data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/GridHeatMap.html +483 -0
  255. data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/HeatMap.html +170 -0
  256. data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Hist.html +349 -0
  257. data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Image.html +177 -0
  258. data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Index.html +29 -0
  259. data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Interaction Layer.html +1372 -0
  260. data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Introduction.html +749 -0
  261. data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Label.html +268 -0
  262. data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Lines.html +704 -0
  263. data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Linking Plots With Widgets.html +389 -0
  264. data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Logs Dashboard.html +455 -0
  265. data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Map.html +229 -0
  266. data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Mark Interactions.html +613 -0
  267. data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Market Map.html +413 -0
  268. data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Mobile Patent Suits.html +131 -0
  269. data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Neural Network.html +190 -0
  270. data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Object Model.html +193 -0
  271. data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Outlier Detection.html +363 -0
  272. data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Pie.html +367 -0
  273. data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Plotting Dates.html +337 -0
  274. data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Pyplot.html +196 -0
  275. data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Scatter.html +948 -0
  276. data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Selectors.html +489 -0
  277. data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Time Series.html +173 -0
  278. data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Tutorials.html +40 -0
  279. data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Updating Plots.html +228 -0
  280. data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/j1_altair_interactive.html +2216 -0
  281. data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/j1_altair_non_interactive.html +1170 -0
  282. data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/j1_bgplot_line_plot.html +318 -0
  283. data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/j1_bokeh_01_basic_plotting.html +1479 -0
  284. data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/j1_bokeh_02_styling_and_theming.html +1524 -0
  285. data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/j1_bokeh_03_data_sources_and_transformations.html +983 -0
  286. data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/j1_bokeh_04_adding_annotations.html +1280 -0
  287. data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/j1_bokeh_05_presentation_layouts.html +660 -0
  288. data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/j1_bokeh_06_linking_and_interactions.html +1563 -0
  289. data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/j1_bokeh_07_bar_and_categorical_data_plots.html +1888 -0
  290. data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/j1_bokeh_08_graph_and_network_plots.html +689 -0
  291. data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/j1_bokeh_09_geographic_plots.html +767 -0
  292. data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/j1_circular_times_table-short.html +475 -0
  293. data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/j1_circular_times_table.html +747 -0
  294. data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/j1_climate_change_forecast.html +1250 -0
  295. data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/j1_docs_example_dynamic.html +186 -0
  296. data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/j1_interactive_widgets.html +512 -0
  297. data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/j1_mathplot_vs_bqplot.html +407 -0
  298. data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/j1_nbi_widgets.html +629 -0
  299. data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/j1_nbi_widgets_bar_chart.html +95 -0
  300. data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/j1_nbi_widgets_hist_chart.html +93 -0
  301. data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/j1_nbi_widgets_line_chart.html +96 -0
  302. data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/j1_nbi_widgets_question_multiple_choice.html +70 -0
  303. data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/j1_nbi_widgets_question_short_answer.html +156 -0
  304. data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/j1_nbi_widgets_scatter_chart.html +95 -0
  305. data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/j1_nbi_widgets_scatter_drag_chart.html +93 -0
  306. data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/j1_odes_in_python.html +955 -0
  307. data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/nbi_docs_examples_central_limit_theorem.html +290 -0
  308. data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/nbi_docs_examples_correlation.html +818 -0
  309. data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/nbi_docs_examples_empirical_distributions.html +351 -0
  310. data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/nbi_docs_examples_linear_regression.html +106 -0
  311. data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/nbi_docs_examples_probability_distribution_plots.html +228 -0
  312. data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/nbi_docs_examples_sampling_from_a_population.html +518 -0
  313. data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/nbi_docs_examples_variability_of_the_sample_mean.html +372 -0
  314. data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/nbi_docs_recipes_graphing.html +473 -0
  315. data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/nbi_docs_recipes_interactive_questions.html +242 -0
  316. data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/nbi_docs_recipes_layout.html +496 -0
  317. data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/nbi_docs_tutorial_interact.html +329 -0
  318. data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/nbi_docs_tutorial_monty_hall.html +866 -0
  319. data/lib/starter_web/pages/public/_jupyter/where_to_go.adoc +270 -0
  320. data/lib/starter_web/pages/public/features/general.adoc +74 -33
  321. data/lib/starter_web/pages/public/features/template.adoc +159 -68
  322. data/lib/starter_web/pages/public/jupyter/notebooks/textbooks/j1_interactive_widgets.html +512 -512
  323. data/lib/starter_web/pages/public/jupyter/notebooks/textbooks/j1_nbi_widgets.html +629 -629
  324. data/lib/starter_web/pages/public/jupyter/notebooks/textbooks/j1_nbi_widgets_bar_chart.html +95 -95
  325. data/lib/starter_web/pages/public/jupyter/notebooks/textbooks/j1_nbi_widgets_hist_chart.html +93 -93
  326. data/lib/starter_web/pages/public/jupyter/notebooks/textbooks/j1_nbi_widgets_line_chart.html +96 -96
  327. data/lib/starter_web/pages/public/jupyter/notebooks/textbooks/j1_nbi_widgets_question_multiple_choice.html +70 -70
  328. data/lib/starter_web/pages/public/jupyter/notebooks/textbooks/j1_nbi_widgets_question_short_answer.html +156 -156
  329. data/lib/starter_web/pages/public/jupyter/notebooks/textbooks/j1_nbi_widgets_scatter_chart.html +95 -95
  330. data/lib/starter_web/pages/public/jupyter/notebooks/textbooks/j1_nbi_widgets_scatter_drag_chart.html +93 -93
  331. data/lib/starter_web/pages/public/jupyter/notebooks/textbooks/j1_odes_in_python.html +955 -955
  332. data/lib/starter_web/pages/public/learn/_roundtrip/100_present_images.adoc +313 -0
  333. data/lib/starter_web/pages/public/learn/_roundtrip/100_present_videos.adoc +281 -0
  334. data/lib/starter_web/pages/public/learn/_roundtrip/200_typography.adoc +253 -0
  335. data/lib/starter_web/pages/public/learn/_roundtrip/300_icon_fonts.adoc +579 -0
  336. data/lib/starter_web/pages/public/learn/_roundtrip/400_asciidoc_extensions.adoc +718 -0
  337. data/lib/starter_web/pages/public/learn/_roundtrip/410_bs_modals_extentions.adoc +91 -0
  338. data/lib/starter_web/pages/public/learn/_roundtrip/420_responsive_tables_extensions.adoc +420 -0
  339. data/lib/starter_web/pages/public/learn/_roundtrip/500_themes.adoc +250 -0
  340. data/lib/starter_web/pages/public/learn/_roundtrip/600_quicksearch.adoc +425 -0
  341. data/lib/starter_web/pages/public/learn/_roundtrip/_includes/attributes.asciidoc +118 -0
  342. data/lib/starter_web/pages/public/learn/_roundtrip/_includes/documents/100_gistblock.asciidoc +28 -0
  343. data/lib/starter_web/pages/public/learn/_roundtrip/_includes/documents/410_bottom_info.asciidoc +14 -0
  344. data/lib/starter_web/pages/public/learn/_roundtrip/_includes/documents/410_bottom_left_warning.asciidoc +11 -0
  345. data/lib/starter_web/pages/public/learn/_roundtrip/_includes/documents/410_bottom_right_danger.asciidoc +11 -0
  346. data/lib/starter_web/pages/public/learn/_roundtrip/_includes/documents/410_central_success.asciidoc +11 -0
  347. data/lib/starter_web/pages/public/learn/_roundtrip/_includes/documents/410_full_height_left_info.asciidoc +11 -0
  348. data/lib/starter_web/pages/public/learn/_roundtrip/_includes/documents/410_full_height_right_success.asciidoc +11 -0
  349. data/lib/starter_web/pages/public/learn/_roundtrip/_includes/documents/410_table_bs_modal_examples.asciidoc +47 -0
  350. data/lib/starter_web/pages/public/learn/_roundtrip/_includes/documents/410_top_info.asciidoc +11 -0
  351. data/lib/starter_web/pages/public/learn/_roundtrip/_includes/documents/410_top_left_info.asciidoc +11 -0
  352. data/lib/starter_web/pages/public/learn/_roundtrip/_includes/documents/410_top_right_success.asciidoc +11 -0
  353. data/lib/starter_web/pages/public/learn/_roundtrip/_includes/documents/419_advanced_modals_demo.asciidoc +337 -0
  354. data/lib/starter_web/pages/public/learn/_roundtrip/_includes/documents/tables/bs_modal_examples.asciidoc +47 -0
  355. data/lib/starter_web/pages/public/learn/_roundtrip/_includes/google-ad.js +130 -0
  356. data/lib/starter_web/pages/public/learn/roundtrip/100_present_images.adoc +6 -5
  357. data/lib/starter_web/pages/public/learn/roundtrip/300_icon_fonts.adoc +1 -2
  358. data/lib/starter_web/pages/public/learn/roundtrip/400_asciidoc_extensions.adoc +4 -2
  359. data/lib/starter_web/pages/public/learn/roundtrip/500_themes.adoc +1 -1
  360. data/lib/starter_web/pages/public/learn/roundtrip/_includes/attributes.asciidoc +1 -1
  361. data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
  362. data/lib/starter_web/utilsrv/package.json +1 -1
  363. metadata +384 -17
  364. data/lib/starter_web/_includes/_attributes.asciidoc +0 -575
  365. data/lib/starter_web/assets/images/pages/features/bootswatch-themes-1080x800.jpg +0 -0
  366. data/lib/starter_web/assets/images/pages/features/comments-1080x600.jpg +0 -0
  367. data/lib/starter_web/assets/images/pages/features/cookie-consent-1080x800.jpg +0 -0
  368. data/lib/starter_web/assets/images/pages/features/example-content-present-videos-1080x800.jpg +0 -0
  369. data/lib/starter_web/assets/images/pages/features/fab-1080x500.jpg +0 -0
  370. data/lib/starter_web/assets/images/pages/features/full-text-search-1080x800.jpg +0 -0
  371. data/lib/starter_web/assets/images/pages/features/global-mobile-traffic-1920x1080.jpg +0 -0
  372. data/lib/starter_web/assets/images/pages/features/google-lighthouse-1080x300.jpg +0 -0
  373. data/lib/starter_web/assets/images/pages/features/intro-panel-1080x800.jpg +0 -0
  374. data/lib/starter_web/assets/images/pages/features/mobile-navigation-600x800.jpg +0 -0
  375. data/lib/starter_web/assets/images/pages/features/native-speakers-by-language.jpg +0 -0
  376. data/lib/starter_web/assets/images/pages/features/nav-module-1080x300.jpg +0 -0
  377. data/lib/starter_web/assets/images/pages/features/teaser-banner-1080x600.jpg +0 -0
  378. data/lib/starter_web/assets/images/pages/features/translator-1080x800.jpg +0 -0
@@ -0,0 +1,1489 @@
1
+ {
2
+ "cells": [
3
+ {
4
+ "cell_type": "code",
5
+ "execution_count": 1,
6
+ "metadata": {},
7
+ "outputs": [],
8
+ "source": [
9
+ "from __future__ import print_function\n",
10
+ "import ipywidgets as widgets\n",
11
+ "from bqplot import pyplot as plt\n",
12
+ "from bqplot import topo_load\n",
13
+ "from bqplot.interacts import panzoom\n",
14
+ "import numpy as np\n",
15
+ "import pandas as pd\n",
16
+ "import datetime as dt"
17
+ ]
18
+ },
19
+ {
20
+ "cell_type": "code",
21
+ "execution_count": 2,
22
+ "metadata": {},
23
+ "outputs": [],
24
+ "source": [
25
+ "# initializing data to be plotted\n",
26
+ "np.random.seed(0)\n",
27
+ "size = 100\n",
28
+ "y_data = np.cumsum(np.random.randn(size) * 100.0)\n",
29
+ "y_data_2 = np.cumsum(np.random.randn(size))\n",
30
+ "y_data_3 = np.cumsum(np.random.randn(size) * 100.0)\n",
31
+ "\n",
32
+ "x = np.linspace(0.0, 10.0, size)"
33
+ ]
34
+ },
35
+ {
36
+ "cell_type": "code",
37
+ "execution_count": 3,
38
+ "metadata": {},
39
+ "outputs": [],
40
+ "source": [
41
+ "price_data = pd.DataFrame(\n",
42
+ " np.cumsum(np.random.randn(150, 2).dot([[0.5, 0.8], [0.8, 1.0]]), axis=0) + 100,\n",
43
+ " columns=[\"Security 1\", \"Security 2\"],\n",
44
+ " index=pd.date_range(start=\"01-01-2007\", periods=150),\n",
45
+ ")\n",
46
+ "\n",
47
+ "symbol = \"Security 1\"\n",
48
+ "dates_all = price_data.index.values\n",
49
+ "final_prices = price_data[symbol].values.flatten()"
50
+ ]
51
+ },
52
+ {
53
+ "cell_type": "code",
54
+ "execution_count": 4,
55
+ "metadata": {},
56
+ "outputs": [],
57
+ "source": [
58
+ "price_data.index.names = [\"date\"]"
59
+ ]
60
+ },
61
+ {
62
+ "cell_type": "markdown",
63
+ "metadata": {},
64
+ "source": [
65
+ "## Simple Plots"
66
+ ]
67
+ },
68
+ {
69
+ "cell_type": "markdown",
70
+ "metadata": {},
71
+ "source": [
72
+ "### Line Chart"
73
+ ]
74
+ },
75
+ {
76
+ "cell_type": "code",
77
+ "execution_count": 5,
78
+ "metadata": {},
79
+ "outputs": [
80
+ {
81
+ "data": {
82
+ "application/vnd.jupyter.widget-view+json": {
83
+ "model_id": "55d3841b437d4a578b53eefc8546223b",
84
+ "version_major": 2,
85
+ "version_minor": 0
86
+ },
87
+ "text/plain": [
88
+ "VBox(children=(Figure(axes=[Axis(label='Time', scale=LinearScale()), Axis(orientation='vertical', scale=Linear…"
89
+ ]
90
+ },
91
+ "metadata": {},
92
+ "output_type": "display_data"
93
+ }
94
+ ],
95
+ "source": [
96
+ "plt.figure()\n",
97
+ "plt.plot(x, y_data)\n",
98
+ "plt.xlabel(\"Time\")\n",
99
+ "plt.show()"
100
+ ]
101
+ },
102
+ {
103
+ "cell_type": "code",
104
+ "execution_count": 6,
105
+ "metadata": {},
106
+ "outputs": [],
107
+ "source": [
108
+ "_ = plt.ylabel(\"Stock Price\")"
109
+ ]
110
+ },
111
+ {
112
+ "cell_type": "code",
113
+ "execution_count": 7,
114
+ "metadata": {},
115
+ "outputs": [],
116
+ "source": [
117
+ "# Setting the title for the current figure\n",
118
+ "plt.title(\"Brownian Increments\")"
119
+ ]
120
+ },
121
+ {
122
+ "cell_type": "code",
123
+ "execution_count": 8,
124
+ "metadata": {},
125
+ "outputs": [
126
+ {
127
+ "data": {
128
+ "application/vnd.jupyter.widget-view+json": {
129
+ "model_id": "67ae65dce27047c98df6ac3f9a7e16c8",
130
+ "version_major": 2,
131
+ "version_minor": 0
132
+ },
133
+ "text/plain": [
134
+ "VBox(children=(Figure(axes=[Axis(scale=DateScale()), Axis(orientation='vertical', scale=LinearScale())], fig_m…"
135
+ ]
136
+ },
137
+ "metadata": {},
138
+ "output_type": "display_data"
139
+ }
140
+ ],
141
+ "source": [
142
+ "plt.figure()\n",
143
+ "plt.plot(\"Security 1\", data=price_data)\n",
144
+ "plt.show()"
145
+ ]
146
+ },
147
+ {
148
+ "cell_type": "markdown",
149
+ "metadata": {},
150
+ "source": [
151
+ "### Scatter Plot"
152
+ ]
153
+ },
154
+ {
155
+ "cell_type": "code",
156
+ "execution_count": 9,
157
+ "metadata": {},
158
+ "outputs": [
159
+ {
160
+ "data": {
161
+ "application/vnd.jupyter.widget-view+json": {
162
+ "model_id": "b8910107322848bb97ee8aae17d60ba8",
163
+ "version_major": 2,
164
+ "version_minor": 0
165
+ },
166
+ "text/plain": [
167
+ "VBox(children=(Figure(axes=[ColorAxis(scale=ColorScale()), Axis(scale=LinearScale()), Axis(orientation='vertic…"
168
+ ]
169
+ },
170
+ "metadata": {},
171
+ "output_type": "display_data"
172
+ }
173
+ ],
174
+ "source": [
175
+ "plt.figure(title=\"Scatter Plot with colors\")\n",
176
+ "plt.scatter(y_data_2, y_data_3, color=y_data, stroke=\"black\")\n",
177
+ "plt.show()"
178
+ ]
179
+ },
180
+ {
181
+ "cell_type": "markdown",
182
+ "metadata": {},
183
+ "source": [
184
+ "### Horizontal and Vertical Lines"
185
+ ]
186
+ },
187
+ {
188
+ "cell_type": "code",
189
+ "execution_count": 10,
190
+ "metadata": {},
191
+ "outputs": [
192
+ {
193
+ "data": {
194
+ "application/vnd.jupyter.widget-view+json": {
195
+ "model_id": "89b11165e1bf44f59f5b0107714cb410",
196
+ "version_major": 2,
197
+ "version_minor": 0
198
+ },
199
+ "text/plain": [
200
+ "VBox(children=(Figure(axes=[ColorAxis(scale=ColorScale()), Axis(scale=LinearScale()), Axis(orientation='vertic…"
201
+ ]
202
+ },
203
+ "metadata": {},
204
+ "output_type": "display_data"
205
+ }
206
+ ],
207
+ "source": [
208
+ "## adding a horizontal line at y=0\n",
209
+ "plt.hline(0)\n",
210
+ "plt.show()"
211
+ ]
212
+ },
213
+ {
214
+ "cell_type": "code",
215
+ "execution_count": 11,
216
+ "metadata": {},
217
+ "outputs": [
218
+ {
219
+ "data": {
220
+ "application/vnd.jupyter.widget-view+json": {
221
+ "model_id": "9b2615cd92cf4449a780a9a16d95ba06",
222
+ "version_major": 2,
223
+ "version_minor": 0
224
+ },
225
+ "text/plain": [
226
+ "VBox(children=(Figure(axes=[ColorAxis(scale=ColorScale()), Axis(scale=LinearScale()), Axis(orientation='vertic…"
227
+ ]
228
+ },
229
+ "metadata": {},
230
+ "output_type": "display_data"
231
+ }
232
+ ],
233
+ "source": [
234
+ "## adding a vertical line at x=4 with stroke_width and colors being passed.\n",
235
+ "plt.vline(4.0, stroke_width=2, colors=[\"orangered\"])\n",
236
+ "plt.show()"
237
+ ]
238
+ },
239
+ {
240
+ "cell_type": "code",
241
+ "execution_count": 12,
242
+ "metadata": {},
243
+ "outputs": [
244
+ {
245
+ "data": {
246
+ "application/vnd.jupyter.widget-view+json": {
247
+ "model_id": "bf1750db1e214395ba09ffc3504e0c65",
248
+ "version_major": 2,
249
+ "version_minor": 0
250
+ },
251
+ "text/plain": [
252
+ "VBox(children=(Figure(axes=[ColorAxis(scale=DateColorScale()), Axis(scale=LinearScale()), Axis(orientation='ve…"
253
+ ]
254
+ },
255
+ "metadata": {},
256
+ "output_type": "display_data"
257
+ }
258
+ ],
259
+ "source": [
260
+ "plt.figure()\n",
261
+ "plt.scatter(\n",
262
+ " \"Security 1\",\n",
263
+ " \"Security 2\",\n",
264
+ " color=\"date\",\n",
265
+ " data=price_data.reset_index(),\n",
266
+ " stroke=\"black\",\n",
267
+ ")\n",
268
+ "plt.show()"
269
+ ]
270
+ },
271
+ {
272
+ "cell_type": "markdown",
273
+ "metadata": {},
274
+ "source": [
275
+ "### Histogram"
276
+ ]
277
+ },
278
+ {
279
+ "cell_type": "code",
280
+ "execution_count": 13,
281
+ "metadata": {},
282
+ "outputs": [
283
+ {
284
+ "data": {
285
+ "application/vnd.jupyter.widget-view+json": {
286
+ "model_id": "192e9b2f99414541a27a4813201a8149",
287
+ "version_major": 2,
288
+ "version_minor": 0
289
+ },
290
+ "text/plain": [
291
+ "VBox(children=(Figure(axes=[Axis(orientation='vertical', scale=LinearScale()), Axis(scale=LinearScale())], fig…"
292
+ ]
293
+ },
294
+ "metadata": {},
295
+ "output_type": "display_data"
296
+ }
297
+ ],
298
+ "source": [
299
+ "plt.figure()\n",
300
+ "plt.hist(y_data, colors=[\"OrangeRed\"])\n",
301
+ "plt.show()"
302
+ ]
303
+ },
304
+ {
305
+ "cell_type": "code",
306
+ "execution_count": 14,
307
+ "metadata": {},
308
+ "outputs": [
309
+ {
310
+ "data": {
311
+ "application/vnd.jupyter.widget-view+json": {
312
+ "model_id": "3f1d804f49914964898cccb26e54f35d",
313
+ "version_major": 2,
314
+ "version_minor": 0
315
+ },
316
+ "text/plain": [
317
+ "VBox(children=(Figure(axes=[Axis(orientation='vertical', scale=LinearScale()), Axis(scale=LinearScale())], fig…"
318
+ ]
319
+ },
320
+ "metadata": {},
321
+ "output_type": "display_data"
322
+ }
323
+ ],
324
+ "source": [
325
+ "plt.figure()\n",
326
+ "plt.hist(\"Security 1\", data=price_data, colors=[\"MediumSeaGreen\"])\n",
327
+ "plt.xlabel(\"Hello\")\n",
328
+ "plt.show()"
329
+ ]
330
+ },
331
+ {
332
+ "cell_type": "markdown",
333
+ "metadata": {},
334
+ "source": [
335
+ "### Bar Chart"
336
+ ]
337
+ },
338
+ {
339
+ "cell_type": "code",
340
+ "execution_count": 15,
341
+ "metadata": {},
342
+ "outputs": [
343
+ {
344
+ "data": {
345
+ "application/vnd.jupyter.widget-view+json": {
346
+ "model_id": "ee614456a34e40718ddd9df5e4b4bc03",
347
+ "version_major": 2,
348
+ "version_minor": 0
349
+ },
350
+ "text/plain": [
351
+ "VBox(children=(Figure(axes=[Axis(scale=OrdinalScale()), Axis(orientation='vertical', scale=LinearScale())], fi…"
352
+ ]
353
+ },
354
+ "metadata": {},
355
+ "output_type": "display_data"
356
+ }
357
+ ],
358
+ "source": [
359
+ "plt.figure()\n",
360
+ "bar_x = [\n",
361
+ " \"A\",\n",
362
+ " \"B\",\n",
363
+ " \"C\",\n",
364
+ " \"D\",\n",
365
+ " \"E\",\n",
366
+ " \"F\",\n",
367
+ " \"G\",\n",
368
+ " \"H\",\n",
369
+ " \"I\",\n",
370
+ " \"J\",\n",
371
+ " \"K\",\n",
372
+ " \"L\",\n",
373
+ " \"M\",\n",
374
+ " \"N\",\n",
375
+ " \"P\",\n",
376
+ " \"Q\",\n",
377
+ " \"R\",\n",
378
+ " \"S\",\n",
379
+ " \"T\",\n",
380
+ " \"U\",\n",
381
+ "]\n",
382
+ "plt.bar(bar_x, y_data_3)\n",
383
+ "plt.show()"
384
+ ]
385
+ },
386
+ {
387
+ "cell_type": "code",
388
+ "execution_count": 16,
389
+ "metadata": {},
390
+ "outputs": [
391
+ {
392
+ "data": {
393
+ "application/vnd.jupyter.widget-view+json": {
394
+ "model_id": "065d430132b74d13bb3a43b49a15c1b5",
395
+ "version_major": 2,
396
+ "version_minor": 0
397
+ },
398
+ "text/plain": [
399
+ "VBox(children=(Figure(axes=[Axis(scale=DateScale()), Axis(orientation='vertical', scale=LinearScale())], fig_m…"
400
+ ]
401
+ },
402
+ "metadata": {},
403
+ "output_type": "display_data"
404
+ }
405
+ ],
406
+ "source": [
407
+ "plt.figure()\n",
408
+ "plt.bar(\"date\", \"Security 2\", data=price_data.reset_index()[:10])\n",
409
+ "plt.show()"
410
+ ]
411
+ },
412
+ {
413
+ "cell_type": "markdown",
414
+ "metadata": {},
415
+ "source": [
416
+ "### Pie Chart"
417
+ ]
418
+ },
419
+ {
420
+ "cell_type": "code",
421
+ "execution_count": 17,
422
+ "metadata": {},
423
+ "outputs": [
424
+ {
425
+ "data": {
426
+ "application/vnd.jupyter.widget-view+json": {
427
+ "model_id": "ea8faa5beeeb4c6191217bcb7e1fb03b",
428
+ "version_major": 2,
429
+ "version_minor": 0
430
+ },
431
+ "text/plain": [
432
+ "VBox(children=(Figure(fig_margin={'top': 60, 'bottom': 60, 'left': 60, 'right': 60}, marks=[Pie(colors=['#1f77…"
433
+ ]
434
+ },
435
+ "metadata": {},
436
+ "output_type": "display_data"
437
+ }
438
+ ],
439
+ "source": [
440
+ "plt.figure()\n",
441
+ "d = abs(y_data_2[:5])\n",
442
+ "plt.pie(d)\n",
443
+ "plt.show()"
444
+ ]
445
+ },
446
+ {
447
+ "cell_type": "code",
448
+ "execution_count": 18,
449
+ "metadata": {},
450
+ "outputs": [
451
+ {
452
+ "data": {
453
+ "application/vnd.jupyter.widget-view+json": {
454
+ "model_id": "323d29ae8fc9447caf63e100832379a7",
455
+ "version_major": 2,
456
+ "version_minor": 0
457
+ },
458
+ "text/plain": [
459
+ "VBox(children=(Figure(axes=[ColorAxis(scale=ColorScale())], fig_margin={'top': 60, 'bottom': 60, 'left': 60, '…"
460
+ ]
461
+ },
462
+ "metadata": {},
463
+ "output_type": "display_data"
464
+ }
465
+ ],
466
+ "source": [
467
+ "plt.figure()\n",
468
+ "plt.pie(\"Security 2\", color=\"Security 1\", data=price_data[:4])\n",
469
+ "plt.show()"
470
+ ]
471
+ },
472
+ {
473
+ "cell_type": "markdown",
474
+ "metadata": {},
475
+ "source": [
476
+ "### OHLC"
477
+ ]
478
+ },
479
+ {
480
+ "cell_type": "code",
481
+ "execution_count": 19,
482
+ "metadata": {},
483
+ "outputs": [
484
+ {
485
+ "data": {
486
+ "application/vnd.jupyter.widget-view+json": {
487
+ "model_id": "2ecaaad83f7e4a0d9f474772accdad06",
488
+ "version_major": 2,
489
+ "version_minor": 0
490
+ },
491
+ "text/plain": [
492
+ "VBox(children=(Figure(axes=[Axis(scale=DateScale()), Axis(orientation='vertical', scale=LinearScale())], fig_m…"
493
+ ]
494
+ },
495
+ "metadata": {},
496
+ "output_type": "display_data"
497
+ }
498
+ ],
499
+ "source": [
500
+ "dates = np.arange(\n",
501
+ " dt.datetime(2014, 1, 2), dt.datetime(2014, 1, 30), dt.timedelta(days=1)\n",
502
+ ")\n",
503
+ "\n",
504
+ "prices = np.array(\n",
505
+ " [\n",
506
+ " [187.21, 187.4, 185.2, 185.53],\n",
507
+ " [185.83, 187.35, 185.3, 186.64],\n",
508
+ " [187.15, 187.355, 185.3, 186.0],\n",
509
+ " [186.39, 190.35, 186.38, 189.71],\n",
510
+ " [189.33, 189.4175, 187.26, 187.97],\n",
511
+ " [189.02, 189.5, 186.55, 187.38],\n",
512
+ " [188.31, 188.57, 186.28, 187.26],\n",
513
+ " [186.26, 186.95, 183.86, 184.16],\n",
514
+ " [185.06, 186.428, 183.8818, 185.92],\n",
515
+ " [185.82, 188.65, 185.49, 187.74],\n",
516
+ " [187.53, 188.99, 186.8, 188.76],\n",
517
+ " [188.04, 190.81, 187.86, 190.09],\n",
518
+ " [190.23, 190.39, 186.79, 188.43],\n",
519
+ " [181.28, 183.5, 179.67, 182.25],\n",
520
+ " [181.43, 183.72, 180.71, 182.73],\n",
521
+ " [181.25, 182.8141, 179.64, 179.64],\n",
522
+ " [179.605, 179.65, 177.66, 177.9],\n",
523
+ " [178.05, 178.45, 176.16, 176.85],\n",
524
+ " [175.98, 178.53, 175.89, 176.4],\n",
525
+ " [177.17, 177.86, 176.36, 177.36],\n",
526
+ " ]\n",
527
+ ")\n",
528
+ "\n",
529
+ "plt.figure()\n",
530
+ "plt.ohlc(dates, prices)\n",
531
+ "plt.show()"
532
+ ]
533
+ },
534
+ {
535
+ "cell_type": "markdown",
536
+ "metadata": {},
537
+ "source": [
538
+ "### Boxplot"
539
+ ]
540
+ },
541
+ {
542
+ "cell_type": "code",
543
+ "execution_count": 20,
544
+ "metadata": {},
545
+ "outputs": [
546
+ {
547
+ "data": {
548
+ "application/vnd.jupyter.widget-view+json": {
549
+ "model_id": "6abde0769f9f44639bda46616528a4e6",
550
+ "version_major": 2,
551
+ "version_minor": 0
552
+ },
553
+ "text/plain": [
554
+ "VBox(children=(Figure(axes=[Axis(scale=LinearScale()), Axis(orientation='vertical', scale=LinearScale())], fig…"
555
+ ]
556
+ },
557
+ "metadata": {},
558
+ "output_type": "display_data"
559
+ }
560
+ ],
561
+ "source": [
562
+ "plt.figure()\n",
563
+ "plt.boxplot(np.arange(10), np.random.randn(10, 100))\n",
564
+ "plt.show()"
565
+ ]
566
+ },
567
+ {
568
+ "cell_type": "markdown",
569
+ "metadata": {},
570
+ "source": [
571
+ "### Map"
572
+ ]
573
+ },
574
+ {
575
+ "cell_type": "code",
576
+ "execution_count": 21,
577
+ "metadata": {},
578
+ "outputs": [
579
+ {
580
+ "data": {
581
+ "application/vnd.jupyter.widget-view+json": {
582
+ "model_id": "cef9c1cdacc146db85039f75b656a7ce",
583
+ "version_major": 2,
584
+ "version_minor": 0
585
+ },
586
+ "text/plain": [
587
+ "VBox(children=(Figure(fig_margin={'top': 60, 'bottom': 60, 'left': 60, 'right': 60}, marks=[Map(hovered_styles…"
588
+ ]
589
+ },
590
+ "metadata": {},
591
+ "output_type": "display_data"
592
+ }
593
+ ],
594
+ "source": [
595
+ "plt.figure()\n",
596
+ "plt.geo(map_data=\"WorldMap\")\n",
597
+ "plt.show()"
598
+ ]
599
+ },
600
+ {
601
+ "cell_type": "markdown",
602
+ "metadata": {},
603
+ "source": [
604
+ "### Heatmap"
605
+ ]
606
+ },
607
+ {
608
+ "cell_type": "code",
609
+ "execution_count": 22,
610
+ "metadata": {},
611
+ "outputs": [
612
+ {
613
+ "data": {
614
+ "application/vnd.jupyter.widget-view+json": {
615
+ "model_id": "decb696a378045dc8ad25163ae113de5",
616
+ "version_major": 2,
617
+ "version_minor": 0
618
+ },
619
+ "text/plain": [
620
+ "VBox(children=(Figure(axes=[ColorAxis(scale=ColorScale()), Axis(scale=LinearScale()), Axis(orientation='vertic…"
621
+ ]
622
+ },
623
+ "metadata": {},
624
+ "output_type": "display_data"
625
+ }
626
+ ],
627
+ "source": [
628
+ "plt.figure(padding_y=0)\n",
629
+ "plt.heatmap(x * x[:, np.newaxis])\n",
630
+ "plt.show()"
631
+ ]
632
+ },
633
+ {
634
+ "cell_type": "markdown",
635
+ "metadata": {},
636
+ "source": [
637
+ "### GridHeatMap"
638
+ ]
639
+ },
640
+ {
641
+ "cell_type": "code",
642
+ "execution_count": 23,
643
+ "metadata": {},
644
+ "outputs": [
645
+ {
646
+ "data": {
647
+ "application/vnd.jupyter.widget-view+json": {
648
+ "model_id": "220ad6a6ae804d0b9e2b5df2059b62b3",
649
+ "version_major": 2,
650
+ "version_minor": 0
651
+ },
652
+ "text/plain": [
653
+ "VBox(children=(Figure(axes=[ColorAxis(scale=ColorScale()), Axis(orientation='vertical', scale=OrdinalScale(rev…"
654
+ ]
655
+ },
656
+ "metadata": {},
657
+ "output_type": "display_data"
658
+ }
659
+ ],
660
+ "source": [
661
+ "plt.figure(padding_y=0)\n",
662
+ "plt.gridheatmap(x[:10] * x[:10, np.newaxis])\n",
663
+ "plt.show()"
664
+ ]
665
+ },
666
+ {
667
+ "cell_type": "markdown",
668
+ "metadata": {},
669
+ "source": [
670
+ "### Plotting Dates"
671
+ ]
672
+ },
673
+ {
674
+ "cell_type": "code",
675
+ "execution_count": 24,
676
+ "metadata": {},
677
+ "outputs": [
678
+ {
679
+ "data": {
680
+ "application/vnd.jupyter.widget-view+json": {
681
+ "model_id": "e2c54c1ae3634ffd8712dafb0cf942ae",
682
+ "version_major": 2,
683
+ "version_minor": 0
684
+ },
685
+ "text/plain": [
686
+ "VBox(children=(Figure(axes=[Axis(scale=DateScale()), Axis(orientation='vertical', scale=LinearScale())], fig_m…"
687
+ ]
688
+ },
689
+ "metadata": {},
690
+ "output_type": "display_data"
691
+ }
692
+ ],
693
+ "source": [
694
+ "plt.figure()\n",
695
+ "plt.plot(dates_all, final_prices)\n",
696
+ "plt.show()"
697
+ ]
698
+ },
699
+ {
700
+ "cell_type": "markdown",
701
+ "metadata": {},
702
+ "source": [
703
+ "### Editing existing axes properties"
704
+ ]
705
+ },
706
+ {
707
+ "cell_type": "code",
708
+ "execution_count": 25,
709
+ "metadata": {},
710
+ "outputs": [],
711
+ "source": [
712
+ "## adding grid lines and changing the side of the axis in the figure above\n",
713
+ "_ = plt.axes(\n",
714
+ " options={\n",
715
+ " \"x\": {\"grid_lines\": \"solid\"},\n",
716
+ " \"y\": {\"side\": \"right\", \"grid_lines\": \"dashed\"},\n",
717
+ " }\n",
718
+ ")"
719
+ ]
720
+ },
721
+ {
722
+ "cell_type": "markdown",
723
+ "metadata": {},
724
+ "source": [
725
+ "## Advanced Usage"
726
+ ]
727
+ },
728
+ {
729
+ "cell_type": "markdown",
730
+ "metadata": {},
731
+ "source": [
732
+ "### Multiple Marks on the same Figure"
733
+ ]
734
+ },
735
+ {
736
+ "cell_type": "code",
737
+ "execution_count": 26,
738
+ "metadata": {},
739
+ "outputs": [
740
+ {
741
+ "data": {
742
+ "application/vnd.jupyter.widget-view+json": {
743
+ "model_id": "5220e1d163d345dfb9e1a6d5d21b0ad4",
744
+ "version_major": 2,
745
+ "version_minor": 0
746
+ },
747
+ "text/plain": [
748
+ "VBox(children=(Figure(axes=[Axis(scale=LinearScale()), Axis(orientation='vertical', scale=LinearScale())], fig…"
749
+ ]
750
+ },
751
+ "metadata": {},
752
+ "output_type": "display_data"
753
+ }
754
+ ],
755
+ "source": [
756
+ "plt.figure()\n",
757
+ "plt.plot(x, y_data_3, colors=[\"orangered\"])\n",
758
+ "plt.scatter(x, y_data, stroke=\"black\")\n",
759
+ "plt.show()"
760
+ ]
761
+ },
762
+ {
763
+ "cell_type": "markdown",
764
+ "metadata": {},
765
+ "source": [
766
+ "### Using marker strings in Line Chart"
767
+ ]
768
+ },
769
+ {
770
+ "cell_type": "code",
771
+ "execution_count": 27,
772
+ "metadata": {},
773
+ "outputs": [
774
+ {
775
+ "data": {
776
+ "application/vnd.jupyter.widget-view+json": {
777
+ "model_id": "89c816f41ced4996b8358aaa02a45220",
778
+ "version_major": 2,
779
+ "version_minor": 0
780
+ },
781
+ "text/plain": [
782
+ "VBox(children=(Figure(axes=[Axis(scale=LinearScale()), Axis(orientation='vertical', scale=LinearScale())], fig…"
783
+ ]
784
+ },
785
+ "metadata": {},
786
+ "output_type": "display_data"
787
+ }
788
+ ],
789
+ "source": [
790
+ "mark_x = np.arange(10)\n",
791
+ "plt.figure(title=\"Using Marker Strings\")\n",
792
+ "plt.plot(\n",
793
+ " mark_x, 3 * mark_x + 5, \"g-.s\"\n",
794
+ ") # color=green, line_style=dash_dotted, marker=square\n",
795
+ "plt.plot(mark_x ** 2, \"m:d\") # color=magenta, line_style=None, marker=diamond\n",
796
+ "plt.show()"
797
+ ]
798
+ },
799
+ {
800
+ "cell_type": "markdown",
801
+ "metadata": {
802
+ "collapsed": true
803
+ },
804
+ "source": [
805
+ "### Partially changing the scales"
806
+ ]
807
+ },
808
+ {
809
+ "cell_type": "code",
810
+ "execution_count": 28,
811
+ "metadata": {},
812
+ "outputs": [
813
+ {
814
+ "data": {
815
+ "application/vnd.jupyter.widget-view+json": {
816
+ "model_id": "ac1b33cc845e4a83a408483da45bbe5e",
817
+ "version_major": 2,
818
+ "version_minor": 0
819
+ },
820
+ "text/plain": [
821
+ "VBox(children=(Figure(axes=[Axis(scale=LinearScale()), Axis(orientation='vertical', scale=LinearScale()), Axis…"
822
+ ]
823
+ },
824
+ "metadata": {},
825
+ "output_type": "display_data"
826
+ }
827
+ ],
828
+ "source": [
829
+ "plt.figure()\n",
830
+ "plt.plot(x, y_data)\n",
831
+ "\n",
832
+ "## preserving the x scale and changing the y scale\n",
833
+ "plt.scales(scales={\"x\": plt.Keep})\n",
834
+ "plt.plot(\n",
835
+ " x,\n",
836
+ " y_data_2,\n",
837
+ " colors=[\"orange\"],\n",
838
+ " axes_options={\"y\": {\"side\": \"right\", \"color\": \"orange\", \"grid_lines\": \"none\"}},\n",
839
+ ")\n",
840
+ "plt.show()"
841
+ ]
842
+ },
843
+ {
844
+ "cell_type": "markdown",
845
+ "metadata": {},
846
+ "source": [
847
+ "### Adding a label to the chart"
848
+ ]
849
+ },
850
+ {
851
+ "cell_type": "code",
852
+ "execution_count": 29,
853
+ "metadata": {},
854
+ "outputs": [
855
+ {
856
+ "data": {
857
+ "application/vnd.jupyter.widget-view+json": {
858
+ "model_id": "5fe726c70fd9458689f8fa0284d81d71",
859
+ "version_major": 2,
860
+ "version_minor": 0
861
+ },
862
+ "text/plain": [
863
+ "VBox(children=(Figure(axes=[Axis(scale=DateScale()), Axis(orientation='vertical', scale=LinearScale())], fig_m…"
864
+ ]
865
+ },
866
+ "metadata": {},
867
+ "output_type": "display_data"
868
+ }
869
+ ],
870
+ "source": [
871
+ "plt.figure()\n",
872
+ "line = plt.plot(dates_all, final_prices)\n",
873
+ "plt.show()"
874
+ ]
875
+ },
876
+ {
877
+ "cell_type": "code",
878
+ "execution_count": 30,
879
+ "metadata": {},
880
+ "outputs": [],
881
+ "source": [
882
+ "## adds the label to the figure created above\n",
883
+ "_ = plt.label(\n",
884
+ " [\"Pie Day\"],\n",
885
+ " x=[np.datetime64(\"2007-03-14\")],\n",
886
+ " y=[final_prices.mean()],\n",
887
+ " scales=line.scales,\n",
888
+ " colors=[\"orangered\"],\n",
889
+ ")"
890
+ ]
891
+ },
892
+ {
893
+ "cell_type": "markdown",
894
+ "metadata": {},
895
+ "source": [
896
+ "### Changing context figure"
897
+ ]
898
+ },
899
+ {
900
+ "cell_type": "code",
901
+ "execution_count": 31,
902
+ "metadata": {},
903
+ "outputs": [
904
+ {
905
+ "data": {
906
+ "application/vnd.jupyter.widget-view+json": {
907
+ "model_id": "7ad2ca9774904a3cae49cd4bb13f7a69",
908
+ "version_major": 2,
909
+ "version_minor": 0
910
+ },
911
+ "text/plain": [
912
+ "VBox(children=(Figure(axes=[Axis(scale=LinearScale()), Axis(orientation='vertical', scale=LinearScale())], fig…"
913
+ ]
914
+ },
915
+ "metadata": {},
916
+ "output_type": "display_data"
917
+ }
918
+ ],
919
+ "source": [
920
+ "plt.figure(1)\n",
921
+ "plt.plot(x, y_data_3)\n",
922
+ "plt.show()"
923
+ ]
924
+ },
925
+ {
926
+ "cell_type": "code",
927
+ "execution_count": 32,
928
+ "metadata": {},
929
+ "outputs": [
930
+ {
931
+ "data": {
932
+ "application/vnd.jupyter.widget-view+json": {
933
+ "model_id": "77f274f4ebb04f7a8ab25d64a28c5de4",
934
+ "version_major": 2,
935
+ "version_minor": 0
936
+ },
937
+ "text/plain": [
938
+ "VBox(children=(Figure(axes=[Axis(scale=LinearScale()), Axis(orientation='vertical', scale=LinearScale())], fig…"
939
+ ]
940
+ },
941
+ "metadata": {},
942
+ "output_type": "display_data"
943
+ }
944
+ ],
945
+ "source": [
946
+ "plt.figure(2)\n",
947
+ "plt.plot(x[:20], y_data_3[:20])\n",
948
+ "plt.show()"
949
+ ]
950
+ },
951
+ {
952
+ "cell_type": "markdown",
953
+ "metadata": {},
954
+ "source": [
955
+ "### Re-editing first figure"
956
+ ]
957
+ },
958
+ {
959
+ "cell_type": "code",
960
+ "execution_count": 33,
961
+ "metadata": {},
962
+ "outputs": [
963
+ {
964
+ "data": {
965
+ "application/vnd.jupyter.widget-view+json": {
966
+ "model_id": "318ee435c1914888b905fd14ae595f15",
967
+ "version_major": 2,
968
+ "version_minor": 0
969
+ },
970
+ "text/plain": [
971
+ "Figure(axes=[Axis(scale=LinearScale()), Axis(orientation='vertical', scale=LinearScale())], fig_margin={'top':…"
972
+ ]
973
+ },
974
+ "metadata": {},
975
+ "output_type": "display_data"
976
+ }
977
+ ],
978
+ "source": [
979
+ "## adds the new line to the first figure\n",
980
+ "fig = plt.figure(1, title=\"New title\")\n",
981
+ "plt.plot(x, y_data, colors=[\"orangered\"])\n",
982
+ "fig"
983
+ ]
984
+ },
985
+ {
986
+ "cell_type": "markdown",
987
+ "metadata": {},
988
+ "source": [
989
+ "### Viewing the properties of the figure"
990
+ ]
991
+ },
992
+ {
993
+ "cell_type": "code",
994
+ "execution_count": 34,
995
+ "metadata": {},
996
+ "outputs": [
997
+ {
998
+ "data": {
999
+ "text/plain": [
1000
+ "{'_model_module': 'bqplot',\n",
1001
+ " '_model_module_version': '^0.4.9',\n",
1002
+ " '_model_name': 'LinesModel',\n",
1003
+ " '_view_count': None,\n",
1004
+ " '_view_module': 'bqplot',\n",
1005
+ " '_view_module_version': '^0.4.9',\n",
1006
+ " '_view_name': 'Lines',\n",
1007
+ " 'apply_clip': True,\n",
1008
+ " 'close_path': False,\n",
1009
+ " 'color': {'values': None, 'type': None},\n",
1010
+ " 'colors': ['#1f77b4',\n",
1011
+ " '#ff7f0e',\n",
1012
+ " '#2ca02c',\n",
1013
+ " '#d62728',\n",
1014
+ " '#9467bd',\n",
1015
+ " '#8c564b',\n",
1016
+ " '#e377c2',\n",
1017
+ " '#7f7f7f',\n",
1018
+ " '#bcbd22',\n",
1019
+ " '#17becf'],\n",
1020
+ " 'curves_subset': [],\n",
1021
+ " 'display_legend': False,\n",
1022
+ " 'enable_hover': True,\n",
1023
+ " 'fill': 'none',\n",
1024
+ " 'fill_colors': [],\n",
1025
+ " 'fill_opacities': [],\n",
1026
+ " 'interactions': {'hover': 'tooltip'},\n",
1027
+ " 'interpolation': 'linear',\n",
1028
+ " 'labels': [],\n",
1029
+ " 'labels_visibility': 'none',\n",
1030
+ " 'line_style': 'solid',\n",
1031
+ " 'marker': None,\n",
1032
+ " 'marker_size': 64,\n",
1033
+ " 'opacities': [],\n",
1034
+ " 'preserve_domain': {},\n",
1035
+ " 'scales': {'x': 'IPY_MODEL_c9ac27d958c24b95bb0b817f6c02ec08',\n",
1036
+ " 'y': 'IPY_MODEL_18ca3c1ae9864a2f8d2002fd6ab3685b'},\n",
1037
+ " 'scales_metadata': {'x': {'orientation': 'horizontal', 'dimension': 'x'},\n",
1038
+ " 'y': {'orientation': 'vertical', 'dimension': 'y'},\n",
1039
+ " 'color': {'dimension': 'color'}},\n",
1040
+ " 'selected': [],\n",
1041
+ " 'selected_style': {},\n",
1042
+ " 'stroke_width': 2.0,\n",
1043
+ " 'tooltip': None,\n",
1044
+ " 'tooltip_location': 'mouse',\n",
1045
+ " 'tooltip_style': {'opacity': 0.9},\n",
1046
+ " 'unselected_style': {},\n",
1047
+ " 'visible': True,\n",
1048
+ " 'x': {'values': [0.0,\n",
1049
+ " 0.10101010101010101,\n",
1050
+ " 0.20202020202020202,\n",
1051
+ " 0.30303030303030304,\n",
1052
+ " 0.40404040404040403,\n",
1053
+ " 0.5050505050505051,\n",
1054
+ " 0.6060606060606061,\n",
1055
+ " 0.7070707070707071,\n",
1056
+ " 0.8080808080808081,\n",
1057
+ " 0.9090909090909091,\n",
1058
+ " 1.0101010101010102,\n",
1059
+ " 1.1111111111111112,\n",
1060
+ " 1.2121212121212122,\n",
1061
+ " 1.3131313131313131,\n",
1062
+ " 1.4141414141414141,\n",
1063
+ " 1.5151515151515151,\n",
1064
+ " 1.6161616161616161,\n",
1065
+ " 1.7171717171717171,\n",
1066
+ " 1.8181818181818181,\n",
1067
+ " 1.9191919191919191,\n",
1068
+ " 2.0202020202020203,\n",
1069
+ " 2.121212121212121,\n",
1070
+ " 2.2222222222222223,\n",
1071
+ " 2.323232323232323,\n",
1072
+ " 2.4242424242424243,\n",
1073
+ " 2.525252525252525,\n",
1074
+ " 2.6262626262626263,\n",
1075
+ " 2.727272727272727,\n",
1076
+ " 2.8282828282828283,\n",
1077
+ " 2.929292929292929,\n",
1078
+ " 3.0303030303030303,\n",
1079
+ " 3.131313131313131,\n",
1080
+ " 3.2323232323232323,\n",
1081
+ " 3.3333333333333335,\n",
1082
+ " 3.4343434343434343,\n",
1083
+ " 3.5353535353535355,\n",
1084
+ " 3.6363636363636362,\n",
1085
+ " 3.7373737373737375,\n",
1086
+ " 3.8383838383838382,\n",
1087
+ " 3.9393939393939394,\n",
1088
+ " 4.040404040404041,\n",
1089
+ " 4.141414141414141,\n",
1090
+ " 4.242424242424242,\n",
1091
+ " 4.343434343434343,\n",
1092
+ " 4.444444444444445,\n",
1093
+ " 4.545454545454545,\n",
1094
+ " 4.646464646464646,\n",
1095
+ " 4.747474747474747,\n",
1096
+ " 4.848484848484849,\n",
1097
+ " 4.94949494949495,\n",
1098
+ " 5.05050505050505,\n",
1099
+ " 5.151515151515151,\n",
1100
+ " 5.252525252525253,\n",
1101
+ " 5.353535353535354,\n",
1102
+ " 5.454545454545454,\n",
1103
+ " 5.555555555555555,\n",
1104
+ " 5.656565656565657,\n",
1105
+ " 5.757575757575758,\n",
1106
+ " 5.858585858585858,\n",
1107
+ " 5.959595959595959,\n",
1108
+ " 6.0606060606060606,\n",
1109
+ " 6.161616161616162,\n",
1110
+ " 6.262626262626262,\n",
1111
+ " 6.363636363636363,\n",
1112
+ " 6.4646464646464645,\n",
1113
+ " 6.565656565656566,\n",
1114
+ " 6.666666666666667,\n",
1115
+ " 6.767676767676767,\n",
1116
+ " 6.8686868686868685,\n",
1117
+ " 6.96969696969697,\n",
1118
+ " 7.070707070707071,\n",
1119
+ " 7.171717171717171,\n",
1120
+ " 7.2727272727272725,\n",
1121
+ " 7.373737373737374,\n",
1122
+ " 7.474747474747475,\n",
1123
+ " 7.575757575757575,\n",
1124
+ " 7.6767676767676765,\n",
1125
+ " 7.777777777777778,\n",
1126
+ " 7.878787878787879,\n",
1127
+ " 7.979797979797979,\n",
1128
+ " 8.080808080808081,\n",
1129
+ " 8.181818181818182,\n",
1130
+ " 8.282828282828282,\n",
1131
+ " 8.383838383838384,\n",
1132
+ " 8.484848484848484,\n",
1133
+ " 8.585858585858587,\n",
1134
+ " 8.686868686868687,\n",
1135
+ " 8.787878787878787,\n",
1136
+ " 8.88888888888889,\n",
1137
+ " 8.98989898989899,\n",
1138
+ " 9.09090909090909,\n",
1139
+ " 9.191919191919192,\n",
1140
+ " 9.292929292929292,\n",
1141
+ " 9.393939393939394,\n",
1142
+ " 9.494949494949495,\n",
1143
+ " 9.595959595959595,\n",
1144
+ " 9.696969696969697,\n",
1145
+ " 9.797979797979798,\n",
1146
+ " 9.8989898989899,\n",
1147
+ " 10.0],\n",
1148
+ " 'type': 'float'},\n",
1149
+ " 'y': {'values': [-36.91818379424436,\n",
1150
+ " -60.856101551837,\n",
1151
+ " 49.109858036874314,\n",
1152
+ " 114.6362311091341,\n",
1153
+ " 178.64938371889332,\n",
1154
+ " 16.95377928780988,\n",
1155
+ " 14.521166847916316,\n",
1156
+ " -59.28192407265256,\n",
1157
+ " -31.289464168328735,\n",
1158
+ " -41.10450313262453,\n",
1159
+ " 49.91338767663467,\n",
1160
+ " 81.63520919576487,\n",
1161
+ " 160.2680054066625,\n",
1162
+ " 113.62609573306818,\n",
1163
+ " 19.18147014124314,\n",
1164
+ " -21.823499179011705,\n",
1165
+ " -23.525540565155765,\n",
1166
+ " 14.389632990352418,\n",
1167
+ " 240.32052805943763,\n",
1168
+ " 236.09481289337336,\n",
1169
+ " 140.50031284409567,\n",
1170
+ " 105.90213527415703,\n",
1171
+ " 59.54253780954761,\n",
1172
+ " 107.69068518689383,\n",
1173
+ " -46.38901625756864,\n",
1174
+ " -40.06281683753547,\n",
1175
+ " -24.412163040997914,\n",
1176
+ " -1.194059420970337,\n",
1177
+ " -60.92566631750661,\n",
1178
+ " -84.71783929110731,\n",
1179
+ " -227.12393018936046,\n",
1180
+ " -276.4559185255799,\n",
1181
+ " -330.74206612725163,\n",
1182
+ " -289.1370615011091,\n",
1183
+ " -404.7553046833003,\n",
1184
+ " -326.63549451230097,\n",
1185
+ " -177.1870400631641,\n",
1186
+ " -384.18554256451733,\n",
1187
+ " -341.5596694867072,\n",
1188
+ " -273.86886598368267,\n",
1189
+ " -337.6125685389056,\n",
1190
+ " -377.33974997178535,\n",
1191
+ " -390.6278077304809,\n",
1192
+ " -420.40689567065374,\n",
1193
+ " -451.308192575366,\n",
1194
+ " -618.9085732083636,\n",
1195
+ " -503.67541673005155,\n",
1196
+ " -395.7135575263694,\n",
1197
+ " -477.0499834467897,\n",
1198
+ " -623.6924162270411,\n",
1199
+ " -571.5859285817653,\n",
1200
+ " -629.1647255630719,\n",
1201
+ " -614.969409230994,\n",
1202
+ " -646.9022509455035,\n",
1203
+ " -577.7483758384849,\n",
1204
+ " -508.27346147288426,\n",
1205
+ " -580.8331993192427,\n",
1206
+ " -719.1695948587483,\n",
1207
+ " -877.4634345922565,\n",
1208
+ " -816.425496681536,\n",
1209
+ " -935.3114224599389,\n",
1210
+ " -985.9930578898076,\n",
1211
+ " -1045.6244617348584,\n",
1212
+ " -1050.881191361813,\n",
1213
+ " -1244.5091719464638,\n",
1214
+ " -1225.6313122670808,\n",
1215
+ " -1173.2422098836603,\n",
1216
+ " -1164.400001179194,\n",
1217
+ " -1195.4886183490412,\n",
1218
+ " -1185.748601722163,\n",
1219
+ " -1145.8439671581498,\n",
1220
+ " -1423.1032428008148,\n",
1221
+ " -1227.5120119757453,\n",
1222
+ " -1188.5026797069527,\n",
1223
+ " -1253.7435379456547,\n",
1224
+ " -1292.8388754644147,\n",
1225
+ " -1243.4646977294958,\n",
1226
+ " -1255.0750916329325,\n",
1227
+ " -1458.1435384110819,\n",
1228
+ " -1251.69425227515,\n",
1229
+ " -1262.7483179983972,\n",
1230
+ " -1160.7310468268172,\n",
1231
+ " -1229.9360316052564,\n",
1232
+ " -1076.2983261806767,\n",
1233
+ " -1047.6639572914487,\n",
1234
+ " -986.7795738439036,\n",
1235
+ " -1091.3049104585991,\n",
1236
+ " -970.1903814903291,\n",
1237
+ " -901.2085650368502,\n",
1238
+ " -771.0239420803504,\n",
1239
+ " -833.8326980445082,\n",
1240
+ " -881.935409890587,\n",
1241
+ " -651.5437401221928,\n",
1242
+ " -757.5453223943475,\n",
1243
+ " -771.1402924621796,\n",
1244
+ " -657.4511562019101,\n",
1245
+ " -647.6786594304245,\n",
1246
+ " -589.3832914550952,\n",
1247
+ " -629.3281943813828,\n",
1248
+ " -592.3226055966309],\n",
1249
+ " 'type': 'float'}}"
1250
+ ]
1251
+ },
1252
+ "execution_count": 34,
1253
+ "metadata": {},
1254
+ "output_type": "execute_result"
1255
+ }
1256
+ ],
1257
+ "source": [
1258
+ "marks = plt.current_figure().marks\n",
1259
+ "marks[0].get_state()"
1260
+ ]
1261
+ },
1262
+ {
1263
+ "cell_type": "markdown",
1264
+ "metadata": {},
1265
+ "source": [
1266
+ "### Showing a second view of the first figure"
1267
+ ]
1268
+ },
1269
+ {
1270
+ "cell_type": "code",
1271
+ "execution_count": 35,
1272
+ "metadata": {},
1273
+ "outputs": [
1274
+ {
1275
+ "data": {
1276
+ "application/vnd.jupyter.widget-view+json": {
1277
+ "model_id": "f75f4a30fbde49bab28e0c8c77531513",
1278
+ "version_major": 2,
1279
+ "version_minor": 0
1280
+ },
1281
+ "text/plain": [
1282
+ "VBox(children=(Figure(axes=[Axis(scale=LinearScale()), Axis(orientation='vertical', scale=LinearScale())], fig…"
1283
+ ]
1284
+ },
1285
+ "metadata": {},
1286
+ "output_type": "display_data"
1287
+ }
1288
+ ],
1289
+ "source": [
1290
+ "plt.show()"
1291
+ ]
1292
+ },
1293
+ {
1294
+ "cell_type": "markdown",
1295
+ "metadata": {},
1296
+ "source": [
1297
+ "### Clearing the figure"
1298
+ ]
1299
+ },
1300
+ {
1301
+ "cell_type": "code",
1302
+ "execution_count": 36,
1303
+ "metadata": {},
1304
+ "outputs": [],
1305
+ "source": [
1306
+ "### Clearing the figure above\n",
1307
+ "plt.clear()"
1308
+ ]
1309
+ },
1310
+ {
1311
+ "cell_type": "markdown",
1312
+ "metadata": {},
1313
+ "source": [
1314
+ "### Deleting a figure and all its views."
1315
+ ]
1316
+ },
1317
+ {
1318
+ "cell_type": "code",
1319
+ "execution_count": 37,
1320
+ "metadata": {},
1321
+ "outputs": [
1322
+ {
1323
+ "data": {
1324
+ "application/vnd.jupyter.widget-view+json": {
1325
+ "model_id": "d0ead56951764160b5c2e9c6603c9403",
1326
+ "version_major": 2,
1327
+ "version_minor": 0
1328
+ },
1329
+ "text/plain": [
1330
+ "VBox(children=(Figure(axes=[Axis(scale=LinearScale()), Axis(orientation='vertical', scale=LinearScale())], fig…"
1331
+ ]
1332
+ },
1333
+ "metadata": {},
1334
+ "output_type": "display_data"
1335
+ }
1336
+ ],
1337
+ "source": [
1338
+ "plt.show(2)"
1339
+ ]
1340
+ },
1341
+ {
1342
+ "cell_type": "code",
1343
+ "execution_count": 38,
1344
+ "metadata": {},
1345
+ "outputs": [],
1346
+ "source": [
1347
+ "plt.close(2)"
1348
+ ]
1349
+ },
1350
+ {
1351
+ "cell_type": "markdown",
1352
+ "metadata": {},
1353
+ "source": [
1354
+ "## Interactions in Pyplot"
1355
+ ]
1356
+ },
1357
+ {
1358
+ "cell_type": "markdown",
1359
+ "metadata": {},
1360
+ "source": [
1361
+ "### Brush Selector"
1362
+ ]
1363
+ },
1364
+ {
1365
+ "cell_type": "code",
1366
+ "execution_count": 39,
1367
+ "metadata": {},
1368
+ "outputs": [
1369
+ {
1370
+ "data": {
1371
+ "application/vnd.jupyter.widget-view+json": {
1372
+ "model_id": "14d5d308a54c418899688e8c8277c5d4",
1373
+ "version_major": 2,
1374
+ "version_minor": 0
1375
+ },
1376
+ "text/plain": [
1377
+ "VBox(children=(Figure(axes=[Axis(scale=LinearScale()), Axis(orientation='vertical', scale=LinearScale())], fig…"
1378
+ ]
1379
+ },
1380
+ "metadata": {},
1381
+ "output_type": "display_data"
1382
+ }
1383
+ ],
1384
+ "source": [
1385
+ "fig = plt.figure()\n",
1386
+ "plt.scatter(y_data_2, y_data_3, colors=[\"orange\"], stroke=\"black\")\n",
1387
+ "\n",
1388
+ "label = widgets.Label()\n",
1389
+ "\n",
1390
+ "\n",
1391
+ "def callback(name, value):\n",
1392
+ " label.value = str(value)\n",
1393
+ "\n",
1394
+ "\n",
1395
+ "## click and drag on the figure to see the selector\n",
1396
+ "plt.brush_selector(callback)\n",
1397
+ "\n",
1398
+ "widgets.VBox([fig, label])"
1399
+ ]
1400
+ },
1401
+ {
1402
+ "cell_type": "markdown",
1403
+ "metadata": {},
1404
+ "source": [
1405
+ "### Fast Interval Selector"
1406
+ ]
1407
+ },
1408
+ {
1409
+ "cell_type": "code",
1410
+ "execution_count": 40,
1411
+ "metadata": {},
1412
+ "outputs": [
1413
+ {
1414
+ "data": {
1415
+ "application/vnd.jupyter.widget-view+json": {
1416
+ "model_id": "f1d871162b4542cf83cb5c3d2844a1fb",
1417
+ "version_major": 2,
1418
+ "version_minor": 0
1419
+ },
1420
+ "text/plain": [
1421
+ "VBox(children=(Figure(axes=[Axis(scale=LinearScale()), Axis(orientation='vertical', scale=LinearScale())], fig…"
1422
+ ]
1423
+ },
1424
+ "metadata": {},
1425
+ "output_type": "display_data"
1426
+ }
1427
+ ],
1428
+ "source": [
1429
+ "fig = plt.figure()\n",
1430
+ "n = 100\n",
1431
+ "plt.plot(np.arange(n), y_data_3)\n",
1432
+ "label = widgets.Label()\n",
1433
+ "\n",
1434
+ "\n",
1435
+ "def callback(name, value):\n",
1436
+ " label.value = str(value)\n",
1437
+ "\n",
1438
+ "\n",
1439
+ "## click on the figure to activate the selector\n",
1440
+ "plt.int_selector(callback)\n",
1441
+ "\n",
1442
+ "widgets.VBox([fig, label])"
1443
+ ]
1444
+ },
1445
+ {
1446
+ "cell_type": "markdown",
1447
+ "metadata": {},
1448
+ "source": [
1449
+ "### Brush Interval Selector with call back on brushing"
1450
+ ]
1451
+ },
1452
+ {
1453
+ "cell_type": "code",
1454
+ "execution_count": 42,
1455
+ "metadata": {},
1456
+ "outputs": [],
1457
+ "source": [
1458
+ "# click and drag on chart to make a selection\n",
1459
+ "def callback(name, value):\n",
1460
+ " label.value = \"Brushing: \" + str(value)\n",
1461
+ "\n",
1462
+ "\n",
1463
+ "_ = plt.brush_int_selector(callback, \"brushing\")"
1464
+ ]
1465
+ }
1466
+ ],
1467
+ "metadata": {
1468
+ "anaconda-cloud": {},
1469
+ "kernelspec": {
1470
+ "display_name": "Python 3 (ipykernel)",
1471
+ "language": "python",
1472
+ "name": "python3"
1473
+ },
1474
+ "language_info": {
1475
+ "codemirror_mode": {
1476
+ "name": "ipython",
1477
+ "version": 3
1478
+ },
1479
+ "file_extension": ".py",
1480
+ "mimetype": "text/x-python",
1481
+ "name": "python",
1482
+ "nbconvert_exporter": "python",
1483
+ "pygments_lexer": "ipython3",
1484
+ "version": "3.7.9"
1485
+ }
1486
+ },
1487
+ "nbformat": 4,
1488
+ "nbformat_minor": 2
1489
+ }