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.
- checksums.yaml +4 -4
- data/assets/data/banner.html +24 -1
- data/assets/themes/j1/adapter/js/masterslider.js +22 -5
- data/assets/themes/j1/core/css/themes/unolight/bootstrap.css +56 -0
- data/assets/themes/j1/core/css/themes/unolight/bootstrap.min.css +1 -1
- data/lib/j1/version.rb +1 -1
- data/lib/starter_web/Gemfile +270 -270
- data/lib/starter_web/_config.yml +19 -9
- data/lib/starter_web/_data/blocks/banner.yml +17 -0
- data/lib/starter_web/_data/modules/defaults/masterslider.yml +1 -1
- data/lib/starter_web/_data/modules/justifiedGallery.yml +82 -0
- data/lib/starter_web/_data/modules/masterslider.yml +5 -9
- data/lib/starter_web/_data/modules/navigator_menu.yml +208 -168
- data/lib/starter_web/_includes/attributes.asciidoc +18 -14
- data/lib/starter_web/_includes/tables/template_variables.asciidoc +1 -1
- data/lib/starter_web/_plugins/asciidoctor-extensions/lightbox-block.rb +4 -4
- data/lib/starter_web/assets/images/pages/features/blog-post-navigator-1280x1000.jpg +0 -0
- data/lib/starter_web/assets/images/pages/features/bootswatch-themes-1280x800.png +0 -0
- data/lib/starter_web/assets/images/pages/features/clipboard-1280x600.jpg +0 -0
- data/lib/starter_web/assets/images/pages/features/comments-1280x600.jpg +0 -0
- data/lib/starter_web/assets/images/pages/features/cookie-consent-1280x800.jpg +0 -0
- data/lib/starter_web/assets/images/pages/features/desktop-web-navigation-1280x1000.jpg +0 -0
- data/lib/starter_web/assets/images/pages/features/example-content-1280x800.jpg +0 -0
- data/lib/starter_web/assets/images/pages/features/example-content-present-videos-1280x800.jpg +0 -0
- data/lib/starter_web/assets/images/pages/features/fab-1280x500.jpg +0 -0
- data/lib/starter_web/assets/images/pages/features/full-text-search-1280x800.jpg +0 -0
- data/lib/starter_web/assets/images/pages/features/global-mobile-traffic-1920x1080.png +0 -0
- data/lib/starter_web/assets/images/pages/features/google-lighthouse-1080x300.png +0 -0
- data/lib/starter_web/assets/images/pages/features/intro-panel-1280x800.jpg +0 -0
- data/lib/starter_web/assets/images/pages/features/master-header-1280x600.jpg +0 -0
- data/lib/starter_web/assets/images/pages/features/mobile-navigation-600x800.png +0 -0
- data/lib/starter_web/assets/images/pages/features/native-speakers-by-language.png +0 -0
- data/lib/starter_web/assets/images/pages/features/nav-module-1280x300.jpg +0 -0
- data/lib/starter_web/assets/images/pages/features/nbi-barchart-1280x800.jpg +0 -0
- data/lib/starter_web/assets/images/pages/features/teaser-banner-1280x600.jpg +0 -0
- data/lib/starter_web/assets/images/pages/features/translator-1280x800.jpg +0 -0
- data/lib/starter_web/assets/images/sticker/600x600/sticker-new-version.png +0 -0
- data/lib/starter_web/assets/images/sticker/scalable/readme +0 -0
- data/lib/starter_web/package.json +6 -6
- data/lib/starter_web/pages/public/_jupyter/docs/_includes/attributes.asciidoc +67 -0
- data/lib/starter_web/pages/public/_jupyter/docs/_includes/documents/j1_docs_example_static.asciidoc +232 -0
- data/lib/starter_web/pages/public/_jupyter/docs/binderhub.adoc +631 -0
- data/lib/starter_web/pages/public/_jupyter/docs/j1-nbinteract.adoc +638 -0
- data/lib/starter_web/pages/public/_jupyter/docs/jupyterhub.adoc +248 -0
- data/lib/starter_web/pages/public/_jupyter/docs/nbinteract-widget-manual.adoc +928 -0
- data/lib/starter_web/pages/public/_jupyter/examples/distributed/j1-circular-times-table.adoc +139 -0
- data/lib/starter_web/pages/public/_jupyter/examples/distributed/j1-common-used-widgets.adoc +229 -0
- data/lib/starter_web/pages/public/_jupyter/examples/distributed/j1-odes-in-python.adoc +112 -0
- data/lib/starter_web/pages/public/_jupyter/examples/localized/j1-altair/j1-altair-visualisations.adoc +142 -0
- data/lib/starter_web/pages/public/_jupyter/examples/localized/j1-bokeh/j1-bokeh-visualisations.adoc +171 -0
- data/lib/starter_web/pages/public/_jupyter/examples/localized/j1-bokeh/j1-bqplot-eamples.adoc +111 -0
- data/lib/starter_web/pages/public/_jupyter/examples/localized/j1-plotly/j1-plotly-visualisations.adoc +94 -0
- data/lib/starter_web/pages/public/_jupyter/examples/localized/j1_climate-change-forecast.adoc +106 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1/.ipynb_checkpoints/j1_altair_interactive-checkpoint.ipynb +16260 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1/.ipynb_checkpoints/j1_bgplot_line_plot-checkpoint.ipynb +247 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1/.ipynb_checkpoints/j1_circular_times_table-Copy1-checkpoint.ipynb +12382 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1/.ipynb_checkpoints/j1_circular_times_table-checkpoint.ipynb +12387 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1/.ipynb_checkpoints/j1_circular_times_table-short-checkpoint.ipynb +12170 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1/.ipynb_checkpoints/j1_climate_change_forecast-checkpoint.ipynb +1058 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1/.ipynb_checkpoints/j1_docs_example_dynamic-checkpoint.ipynb +14478 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1/.ipynb_checkpoints/j1_interactive_widgets-Copy1-checkpoint.ipynb +379 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1/.ipynb_checkpoints/j1_interactive_widgets-checkpoint.ipynb +442 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1/.ipynb_checkpoints/j1_nbi_widgets-checkpoint.ipynb +523 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1/.ipynb_checkpoints/j1_nbi_widgets.line_charts-checkpoint.ipynb +84 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1/.ipynb_checkpoints/j1_nbi_widgets.questions-checkpoint.ipynb +194 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1/.ipynb_checkpoints/j1_nbi_widgets_bar_chart-checkpoint.ipynb +89 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1/.ipynb_checkpoints/j1_nbi_widgets_bar_charts-Copy1-checkpoint.ipynb +164 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1/.ipynb_checkpoints/j1_nbi_widgets_bar_charts-checkpoint.ipynb +173 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1/.ipynb_checkpoints/j1_nbi_widgets_bar_charts.1-checkpoint.ipynb +256 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1/.ipynb_checkpoints/j1_nbi_widgets_barcharts-checkpoint.ipynb +126 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1/.ipynb_checkpoints/j1_nbi_widgets_hist_chart-checkpoint.ipynb +87 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1/.ipynb_checkpoints/j1_nbi_widgets_line_chart-checkpoint.ipynb +90 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1/.ipynb_checkpoints/j1_nbi_widgets_line_charts-checkpoint.ipynb +87 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1/.ipynb_checkpoints/j1_nbi_widgets_question_multiple_choice-checkpoint.ipynb +64 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1/.ipynb_checkpoints/j1_nbi_widgets_question_short_answer-checkpoint.ipynb +122 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1/.ipynb_checkpoints/j1_nbi_widgets_questions-checkpoint.ipynb +181 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1/.ipynb_checkpoints/j1_nbi_widgets_scatter_chart-checkpoint.ipynb +89 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1/.ipynb_checkpoints/j1_nbi_widgets_scatter_charts-checkpoint.ipynb +175 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1/.ipynb_checkpoints/j1_nbi_widgets_scatter_drag_chart-checkpoint.ipynb +87 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1/.ipynb_checkpoints/j1_ode_selected-checkpoint.ipynb +14478 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1/.ipynb_checkpoints/j1_odes_in_python-checkpoint.ipynb +15227 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1/factor_by_factor.mp4 +0 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1/j1_circular_times_table.ipynb +12382 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1/j1_climate_change_forecast.ipynb +1058 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1/j1_docs_example_dynamic.ipynb +14478 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1/j1_interactive_widgets.ipynb +442 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1/j1_nbi_widgets.ipynb +523 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1/j1_nbi_widgets_bar_chart.ipynb +89 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1/j1_nbi_widgets_hist_chart.ipynb +87 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1/j1_nbi_widgets_line_chart.ipynb +90 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1/j1_nbi_widgets_question_multiple_choice.ipynb +64 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1/j1_nbi_widgets_question_short_answer.ipynb +122 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1/j1_nbi_widgets_scatter_chart.ipynb +89 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1/j1_nbi_widgets_scatter_drag_chart.ipynb +87 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1/j1_odes_in_python.ipynb +15227 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1/line_by_line.mp4 +0 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1/point_by_point.mp4 +0 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1-altair-tutorial/.ipynb_checkpoints/j1_altair_interactive-checkpoint.ipynb +16296 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1-altair-tutorial/.ipynb_checkpoints/j1_altair_non_interactive-checkpoint.ipynb +15385 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1-altair-tutorial/j1_altair_interactive.ipynb +16296 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1-altair-tutorial/j1_altair_non_interactive.ipynb +15385 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/.ipynb_checkpoints/00 - Introduction and Setup-checkpoint.ipynb +717 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/.ipynb_checkpoints/01 - Basic Plotting-checkpoint.ipynb +1381 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/.ipynb_checkpoints/02 - Styling and Theming-checkpoint.ipynb +1440 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/.ipynb_checkpoints/03 - Data Sources and Transformations-checkpoint.ipynb +927 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/.ipynb_checkpoints/04 - Adding Annotations-checkpoint.ipynb +1105 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/.ipynb_checkpoints/05 - Presentation Layouts-checkpoint.ipynb +578 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/.ipynb_checkpoints/06 - Linking and Interactions-checkpoint.ipynb +1196 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/.ipynb_checkpoints/07 - Bar and Categorical Data Plots-checkpoint.ipynb +1681 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/.ipynb_checkpoints/08 - Graph and Network Plots-checkpoint.ipynb +680 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/.ipynb_checkpoints/09 - Geographic Plots-checkpoint.ipynb +693 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/.ipynb_checkpoints/10 - Exporting and Embedding-checkpoint.ipynb +751 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/.ipynb_checkpoints/11 - Running Bokeh Applications-checkpoint.ipynb +770 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/.ipynb_checkpoints/bokeh_tut_00_introduction_and_setup-checkpoint.ipynb +666 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/.ipynb_checkpoints/j1_bokeh_01_basic_plotting-checkpoint.ipynb +1365 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/.ipynb_checkpoints/j1_bokeh_02_styling_and_theming-checkpoint.ipynb +1405 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/.ipynb_checkpoints/j1_bokeh_03_data_sources_and_transformations-checkpoint.ipynb +856 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/.ipynb_checkpoints/j1_bokeh_04_adding_annotations-checkpoint.ipynb +1167 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/.ipynb_checkpoints/j1_bokeh_05_presentation_layouts-checkpoint.ipynb +601 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/.ipynb_checkpoints/j1_bokeh_06_linking_and_interactions-checkpoint.ipynb +1356 -0
- 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
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/.ipynb_checkpoints/j1_bokeh_08_graph_and_network_plots-checkpoint.ipynb +625 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/.ipynb_checkpoints/j1_bokeh_09_geographic_plots-checkpoint.ipynb +685 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/.ipynb_checkpoints/j1_bokeh_10_exporting_and_embedding-checkpoint.ipynb +726 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/.ipynb_checkpoints/j1_bokeh_10_exporting_and_embedding-checkpoint.org +726 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/.ipynb_checkpoints/j1_bokeh_10_exporting_and_embedding.new-checkpoint.ipynb +560 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/.ipynb_checkpoints/j1_bokeh_11_running_bokeh_applications-checkpoint.ipynb +716 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/j1_bokeh_01_basic_plotting.ipynb +1365 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/j1_bokeh_02_styling_and_theming.ipynb +1405 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/j1_bokeh_03_data_sources_and_transformations.ipynb +856 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/j1_bokeh_04_adding_annotations.ipynb +1167 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/j1_bokeh_05_presentation_layouts.ipynb +601 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/j1_bokeh_06_linking_and_interactions.ipynb +1356 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/j1_bokeh_07_bar_and_categorical_data_plots.ipynb +1742 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/j1_bokeh_08_graph_and_network_plots.ipynb +625 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bokeh-tutorial/j1_bokeh_09_geographic_plots.ipynb +685 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bqplot/.ipynb_checkpoints/j1_mathplot_vs_bqplot-checkpoint.ipynb +336 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bqplot/advanced/Feature_Vector_Distribution-Iris-Digits.ipynb +433 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bqplot/j1_bgplot_line_plot.ipynb +244 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bqplot/j1_circular_times_table-short.ipynb +12170 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/j1-bqplot/j1_mathplot_vs_bqplot.ipynb +336 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/.ipynb_checkpoints/Index-checkpoint.ipynb +163 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/.ipynb_checkpoints/Tutorials-checkpoint.ipynb +51 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Advanced Plotting/Advanced Plotting.ipynb +289 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Advanced Plotting/Animations.ipynb +266 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Advanced Plotting/Axis Properties.ipynb +396 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Advanced Plotting/Plotting Dates.ipynb +318 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Applications/Equity Index Performance/Time Series.ipynb +158 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Applications/Equity Index Performance/spx_prices.csv +6799 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Applications/Feature_Vector_Distribution-Iris-Digits.ipynb +470 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Applications/Index.ipynb +49 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Applications/Logs Analytics/Logs Dashboard.ipynb +378 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Applications/Mobile Patent Suits.ipynb +123 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Applications/Neural Network.ipynb +177 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Applications/Outlier Detection.ipynb +311 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Applications/Wealth Of Nations/Bubble Chart.ipynb +255 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Applications/Wealth Of Nations/Choropleth.ipynb +275 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Applications/Wealth Of Nations/nations.json +1 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Applications/Wealth Of Nations/world_map_codes.csv +234 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Basic Plotting/.ipynb_checkpoints/Basic Plotting-checkpoint.ipynb +186 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Basic Plotting/.ipynb_checkpoints/Pyplot-checkpoint.ipynb +794 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Basic Plotting/.ipynb_checkpoints/Untitled-checkpoint.ipynb +323 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Basic Plotting/Basic Plotting.ipynb +261 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Basic Plotting/Pyplot.ipynb +1489 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Index.ipynb +163 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Interactions/Interaction Layer.ipynb +966 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Interactions/Mark Interactions.ipynb +476 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Interactions/Selectors.ipynb +427 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Introduction.ipynb +528 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Marks/Object Model/Bars.ipynb +480 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Marks/Object Model/Bins.ipynb +217 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Marks/Object Model/Boxplot.ipynb +253 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Marks/Object Model/Candles.ipynb +225 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Marks/Object Model/FlexLine.ipynb +123 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Marks/Object Model/Graph.ipynb +357 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Marks/Object Model/GridHeatMap.ipynb +422 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Marks/Object Model/HeatMap.ipynb +157 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Marks/Object Model/Hist.ipynb +176 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Marks/Object Model/Image.ipynb +195 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Marks/Object Model/Label.ipynb +189 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Marks/Object Model/Lines.ipynb +565 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Marks/Object Model/Map.ipynb +182 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Marks/Object Model/Market Map.ipynb +315 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Marks/Object Model/Pie.ipynb +465 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Marks/Object Model/Scatter.ipynb +835 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Marks/Pyplot/Bars.ipynb +362 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Marks/Pyplot/Bins.ipynb +252 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Marks/Pyplot/Boxplot.ipynb +273 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Marks/Pyplot/Candles.ipynb +242 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Marks/Pyplot/GridHeatMap.ipynb +417 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Marks/Pyplot/HeatMap.ipynb +155 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Marks/Pyplot/Hist.ipynb +238 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Marks/Pyplot/Image.ipynb +152 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Marks/Pyplot/Label.ipynb +206 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Marks/Pyplot/Lines.ipynb +474 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Marks/Pyplot/Map.ipynb +181 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Marks/Pyplot/Pie.ipynb +310 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Marks/Pyplot/Scatter.ipynb +702 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Scales/Color Scales.ipynb +495 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Tutorials/.ipynb_checkpoints/Feature_Vector_Distribution-Iris-Digits-checkpoint.ipynb +433 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Tutorials/.ipynb_checkpoints/Linking Plots With Widgets-checkpoint.ipynb +326 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Tutorials/.ipynb_checkpoints/Updating Plots-Copy1-checkpoint.ipynb +177 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Tutorials/.ipynb_checkpoints/Updating Plots-checkpoint.ipynb +177 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Tutorials/Brush Interval Selector.ipynb +154 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Tutorials/Fast Interval Selector.ipynb +152 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Tutorials/Gaussian Density Widget.ipynb +128 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Tutorials/Gaussian Density.ipynb +113 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Tutorials/Linking Plots With Widgets.ipynb +326 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Tutorials/Object Model.ipynb +179 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Tutorials/Pyplot.ipynb +174 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Tutorials/Updating Plots.ipynb +177 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/Tutorials.ipynb +51 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/data_files/country_codes.csv +213 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/data_files/gdp_per_capita.csv +56 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/data_files/state_codes.csv +52 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/martin_renou_bqplot/data_files/trees.jpg +0 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/nbi-docs/.ipynb_checkpoints/nbi_docs_examples_central_limit_theorem-checkpoint.ipynb +247 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/nbi-docs/.ipynb_checkpoints/nbi_docs_examples_variability_of_the_sample_mean-checkpoint.ipynb +323 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/nbi-docs/.ipynb_checkpoints/nbi_docs_recipes_graphing-checkpoint.ipynb +387 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/nbi-docs/.ipynb_checkpoints/nbi_docs_recipes_interactive_questions-checkpoint.ipynb +185 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/nbi-docs/.ipynb_checkpoints/nbi_docs_recipes_layout-checkpoint.ipynb +384 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/nbi-docs/.ipynb_checkpoints/nbi_docs_tutorial_interact-checkpoint.ipynb +254 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/nbi-docs/.ipynb_checkpoints/nbi_docs_tutorial_monty_hall-checkpoint.ipynb +732 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/nbi-docs/nbi_docs_examples_central_limit_theorem.ipynb +247 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/nbi-docs/nbi_docs_examples_correlation.ipynb +651 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/nbi-docs/nbi_docs_examples_empirical_distributions.ipynb +773 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/nbi-docs/nbi_docs_examples_linear_regression.ipynb +111 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/nbi-docs/nbi_docs_examples_probability_distribution_plots.ipynb +199 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/nbi-docs/nbi_docs_examples_sampling_from_a_population.ipynb +421 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/nbi-docs/nbi_docs_examples_variability_of_the_sample_mean.ipynb +323 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/nbi-docs/nbi_docs_recipes_graphing.ipynb +387 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/nbi-docs/nbi_docs_recipes_interactive_questions.ipynb +185 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/nbi-docs/nbi_docs_recipes_layout.ipynb +384 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/nbi-docs/nbi_docs_tutorial_interact.ipynb +254 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/nbi-docs/nbi_docs_tutorial_monty_hall.ipynb +732 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Advanced Plotting.html +373 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Animations.html +361 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Axis Properties.html +569 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Bars.html +487 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Basic Plotting.html +341 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Bins.html +259 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Boxplot.html +277 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Brush Interval Selector.html +182 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Bubble Chart.html +299 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Candles.html +252 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Choropleth.html +318 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Color Scales.html +514 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Fast Interval Selector.html +182 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Feature_Vector_Distribution-Iris-Digits.html +479 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/FlexLine.html +128 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Gaussian Density Widget.html +152 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Gaussian Density.html +137 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Graph.html +484 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/GridHeatMap.html +483 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/HeatMap.html +170 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Hist.html +349 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Image.html +177 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Index.html +29 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Interaction Layer.html +1372 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Introduction.html +749 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Label.html +268 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Lines.html +704 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Linking Plots With Widgets.html +389 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Logs Dashboard.html +455 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Map.html +229 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Mark Interactions.html +613 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Market Map.html +413 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Mobile Patent Suits.html +131 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Neural Network.html +190 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Object Model.html +193 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Outlier Detection.html +363 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Pie.html +367 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Plotting Dates.html +337 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Pyplot.html +196 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Scatter.html +948 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Selectors.html +489 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Time Series.html +173 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Tutorials.html +40 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/Updating Plots.html +228 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/j1_altair_interactive.html +2216 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/j1_altair_non_interactive.html +1170 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/j1_bgplot_line_plot.html +318 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/j1_bokeh_01_basic_plotting.html +1479 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/j1_bokeh_02_styling_and_theming.html +1524 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/j1_bokeh_03_data_sources_and_transformations.html +983 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/j1_bokeh_04_adding_annotations.html +1280 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/j1_bokeh_05_presentation_layouts.html +660 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/j1_bokeh_06_linking_and_interactions.html +1563 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/j1_bokeh_07_bar_and_categorical_data_plots.html +1888 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/j1_bokeh_08_graph_and_network_plots.html +689 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/j1_bokeh_09_geographic_plots.html +767 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/j1_circular_times_table-short.html +475 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/j1_circular_times_table.html +747 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/j1_climate_change_forecast.html +1250 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/j1_docs_example_dynamic.html +186 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/j1_interactive_widgets.html +512 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/j1_mathplot_vs_bqplot.html +407 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/j1_nbi_widgets.html +629 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/j1_nbi_widgets_bar_chart.html +95 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/j1_nbi_widgets_hist_chart.html +93 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/j1_nbi_widgets_line_chart.html +96 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/j1_nbi_widgets_question_multiple_choice.html +70 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/j1_nbi_widgets_question_short_answer.html +156 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/j1_nbi_widgets_scatter_chart.html +95 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/j1_nbi_widgets_scatter_drag_chart.html +93 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/j1_odes_in_python.html +955 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/nbi_docs_examples_central_limit_theorem.html +290 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/nbi_docs_examples_correlation.html +818 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/nbi_docs_examples_empirical_distributions.html +351 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/nbi_docs_examples_linear_regression.html +106 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/nbi_docs_examples_probability_distribution_plots.html +228 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/nbi_docs_examples_sampling_from_a_population.html +518 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/nbi_docs_examples_variability_of_the_sample_mean.html +372 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/nbi_docs_recipes_graphing.html +473 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/nbi_docs_recipes_interactive_questions.html +242 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/nbi_docs_recipes_layout.html +496 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/nbi_docs_tutorial_interact.html +329 -0
- data/lib/starter_web/pages/public/_jupyter/notebooks/textbooks/nbi_docs_tutorial_monty_hall.html +866 -0
- data/lib/starter_web/pages/public/_jupyter/where_to_go.adoc +270 -0
- data/lib/starter_web/pages/public/features/general.adoc +74 -33
- data/lib/starter_web/pages/public/features/template.adoc +159 -68
- data/lib/starter_web/pages/public/jupyter/notebooks/textbooks/j1_interactive_widgets.html +512 -512
- data/lib/starter_web/pages/public/jupyter/notebooks/textbooks/j1_nbi_widgets.html +629 -629
- data/lib/starter_web/pages/public/jupyter/notebooks/textbooks/j1_nbi_widgets_bar_chart.html +95 -95
- data/lib/starter_web/pages/public/jupyter/notebooks/textbooks/j1_nbi_widgets_hist_chart.html +93 -93
- data/lib/starter_web/pages/public/jupyter/notebooks/textbooks/j1_nbi_widgets_line_chart.html +96 -96
- data/lib/starter_web/pages/public/jupyter/notebooks/textbooks/j1_nbi_widgets_question_multiple_choice.html +70 -70
- data/lib/starter_web/pages/public/jupyter/notebooks/textbooks/j1_nbi_widgets_question_short_answer.html +156 -156
- data/lib/starter_web/pages/public/jupyter/notebooks/textbooks/j1_nbi_widgets_scatter_chart.html +95 -95
- data/lib/starter_web/pages/public/jupyter/notebooks/textbooks/j1_nbi_widgets_scatter_drag_chart.html +93 -93
- data/lib/starter_web/pages/public/jupyter/notebooks/textbooks/j1_odes_in_python.html +955 -955
- data/lib/starter_web/pages/public/learn/_roundtrip/100_present_images.adoc +313 -0
- data/lib/starter_web/pages/public/learn/_roundtrip/100_present_videos.adoc +281 -0
- data/lib/starter_web/pages/public/learn/_roundtrip/200_typography.adoc +253 -0
- data/lib/starter_web/pages/public/learn/_roundtrip/300_icon_fonts.adoc +579 -0
- data/lib/starter_web/pages/public/learn/_roundtrip/400_asciidoc_extensions.adoc +718 -0
- data/lib/starter_web/pages/public/learn/_roundtrip/410_bs_modals_extentions.adoc +91 -0
- data/lib/starter_web/pages/public/learn/_roundtrip/420_responsive_tables_extensions.adoc +420 -0
- data/lib/starter_web/pages/public/learn/_roundtrip/500_themes.adoc +250 -0
- data/lib/starter_web/pages/public/learn/_roundtrip/600_quicksearch.adoc +425 -0
- data/lib/starter_web/pages/public/learn/_roundtrip/_includes/attributes.asciidoc +118 -0
- data/lib/starter_web/pages/public/learn/_roundtrip/_includes/documents/100_gistblock.asciidoc +28 -0
- data/lib/starter_web/pages/public/learn/_roundtrip/_includes/documents/410_bottom_info.asciidoc +14 -0
- data/lib/starter_web/pages/public/learn/_roundtrip/_includes/documents/410_bottom_left_warning.asciidoc +11 -0
- data/lib/starter_web/pages/public/learn/_roundtrip/_includes/documents/410_bottom_right_danger.asciidoc +11 -0
- data/lib/starter_web/pages/public/learn/_roundtrip/_includes/documents/410_central_success.asciidoc +11 -0
- data/lib/starter_web/pages/public/learn/_roundtrip/_includes/documents/410_full_height_left_info.asciidoc +11 -0
- data/lib/starter_web/pages/public/learn/_roundtrip/_includes/documents/410_full_height_right_success.asciidoc +11 -0
- data/lib/starter_web/pages/public/learn/_roundtrip/_includes/documents/410_table_bs_modal_examples.asciidoc +47 -0
- data/lib/starter_web/pages/public/learn/_roundtrip/_includes/documents/410_top_info.asciidoc +11 -0
- data/lib/starter_web/pages/public/learn/_roundtrip/_includes/documents/410_top_left_info.asciidoc +11 -0
- data/lib/starter_web/pages/public/learn/_roundtrip/_includes/documents/410_top_right_success.asciidoc +11 -0
- data/lib/starter_web/pages/public/learn/_roundtrip/_includes/documents/419_advanced_modals_demo.asciidoc +337 -0
- data/lib/starter_web/pages/public/learn/_roundtrip/_includes/documents/tables/bs_modal_examples.asciidoc +47 -0
- data/lib/starter_web/pages/public/learn/_roundtrip/_includes/google-ad.js +130 -0
- data/lib/starter_web/pages/public/learn/roundtrip/100_present_images.adoc +6 -5
- data/lib/starter_web/pages/public/learn/roundtrip/300_icon_fonts.adoc +1 -2
- data/lib/starter_web/pages/public/learn/roundtrip/400_asciidoc_extensions.adoc +4 -2
- data/lib/starter_web/pages/public/learn/roundtrip/500_themes.adoc +1 -1
- data/lib/starter_web/pages/public/learn/roundtrip/_includes/attributes.asciidoc +1 -1
- data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
- data/lib/starter_web/utilsrv/package.json +1 -1
- metadata +384 -17
- data/lib/starter_web/_includes/_attributes.asciidoc +0 -575
- data/lib/starter_web/assets/images/pages/features/bootswatch-themes-1080x800.jpg +0 -0
- data/lib/starter_web/assets/images/pages/features/comments-1080x600.jpg +0 -0
- data/lib/starter_web/assets/images/pages/features/cookie-consent-1080x800.jpg +0 -0
- data/lib/starter_web/assets/images/pages/features/example-content-present-videos-1080x800.jpg +0 -0
- data/lib/starter_web/assets/images/pages/features/fab-1080x500.jpg +0 -0
- data/lib/starter_web/assets/images/pages/features/full-text-search-1080x800.jpg +0 -0
- data/lib/starter_web/assets/images/pages/features/global-mobile-traffic-1920x1080.jpg +0 -0
- data/lib/starter_web/assets/images/pages/features/google-lighthouse-1080x300.jpg +0 -0
- data/lib/starter_web/assets/images/pages/features/intro-panel-1080x800.jpg +0 -0
- data/lib/starter_web/assets/images/pages/features/mobile-navigation-600x800.jpg +0 -0
- data/lib/starter_web/assets/images/pages/features/native-speakers-by-language.jpg +0 -0
- data/lib/starter_web/assets/images/pages/features/nav-module-1080x300.jpg +0 -0
- data/lib/starter_web/assets/images/pages/features/teaser-banner-1080x600.jpg +0 -0
- data/lib/starter_web/assets/images/pages/features/translator-1080x800.jpg +0 -0
@@ -0,0 +1,928 @@
|
|
1
|
+
---
|
2
|
+
title: J1 NBI
|
3
|
+
tagline: nbinteract widgets
|
4
|
+
date: 2022-03-28 00:00:00
|
5
|
+
description: >
|
6
|
+
The package nbinteract aims to enable authors and educators to create and
|
7
|
+
share interactive web pages easily. Interactive explanations of concepts are
|
8
|
+
useful for communicating and explaining tricky concepts.
|
9
|
+
keywords: >
|
10
|
+
opensource, free, load, download, start, starter, example,
|
11
|
+
high, easy, use, secure, encrypt, standard, popular,
|
12
|
+
generate, create, learn, distribute, publish, deploy,
|
13
|
+
beginner, advanced, expert, student, learner, educator,
|
14
|
+
writer, reader, visitor,
|
15
|
+
framework, toolkit, integration, extension, module, api,
|
16
|
+
dynamic, static, generator, client, server, internet, local, localhost,
|
17
|
+
page, web, website, webdesign, material, design, responsive,
|
18
|
+
javascript, nodejs, ruby, windows, linux, osx, mac, os,
|
19
|
+
http, https, html, html5, css, scss, style,
|
20
|
+
browser, firefox, chrome, edge, opera, safari,
|
21
|
+
configuration, generator, navigation, menu, dropdown, fab, action, button,
|
22
|
+
application, interface, provider, api, repository,
|
23
|
+
cookie, language, translation, gdpr, dsgvo, privacy,
|
24
|
+
asciidoc, aciidoctor, bootstrap, jekyll, liquid,
|
25
|
+
hyvor, disqus, git, github, netlify, heroku, apple, microsoft,
|
26
|
+
provider, service, internet, support,
|
27
|
+
google, analytics, advertising, search, console, silverlight, score,
|
28
|
+
j1, nbi, j1-nbinteract, nbinteract, template, integration,
|
29
|
+
python, jupyter, notebook, textbook, api, app,
|
30
|
+
binder, binderhub, jupyterhub
|
31
|
+
|
32
|
+
categories: [ Software, Python ]
|
33
|
+
tags: [ Binder, API ]
|
34
|
+
|
35
|
+
scrollbar: false
|
36
|
+
|
37
|
+
permalink: /pages/public/jupyter/docs/nbi-widgets/
|
38
|
+
regenerate: false
|
39
|
+
|
40
|
+
resources: [ animate, clipboard, lightbox, rouge ]
|
41
|
+
resource_options:
|
42
|
+
- attic:
|
43
|
+
slides:
|
44
|
+
- url: /assets/images/modules/attics/yellow-cactus-1920x1280.jpg
|
45
|
+
alt: Photo by Yellow Cactus on Unsplash
|
46
|
+
badge:
|
47
|
+
type: unsplash
|
48
|
+
author: Yellow Cactus
|
49
|
+
href: https://unsplash.com/@yellowcactus
|
50
|
+
---
|
51
|
+
|
52
|
+
// Page Initializer
|
53
|
+
// =============================================================================
|
54
|
+
// Enable the Liquid Preprocessor
|
55
|
+
:page-liquid:
|
56
|
+
|
57
|
+
// Set (local) page attributes here
|
58
|
+
// -----------------------------------------------------------------------------
|
59
|
+
// :page--attr: <attr-value>
|
60
|
+
:badges-enabled: false
|
61
|
+
:binder-badges-enabled: false
|
62
|
+
:binder--home: https://mybinder.org/
|
63
|
+
:binder--docs: https://mybinder.readthedocs.io/en/latest/
|
64
|
+
:binder-app-launch--tree: https://mybinder.org/v2/gh/jekyll-one/j1-binder-repo/main?urlpath=/tree
|
65
|
+
:binder-app-launch--lab: https://mybinder.org/v2/gh/jekyll-one/j1-binder-repo/main
|
66
|
+
|
67
|
+
// Load Liquid procedures
|
68
|
+
// -----------------------------------------------------------------------------
|
69
|
+
{% capture load_attributes %}themes/{{site.template.name}}/procedures/global/attributes_loader.proc{%endcapture%}
|
70
|
+
|
71
|
+
// Load page attributes
|
72
|
+
// -----------------------------------------------------------------------------
|
73
|
+
{% include {{load_attributes}} scope="all" %}
|
74
|
+
|
75
|
+
|
76
|
+
// Page content
|
77
|
+
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
78
|
+
ifeval::[{binder-badges-enabled} == true]
|
79
|
+
image:/assets/images/badges/myBinder.png[[Binder, link="{binder--home}", {browser-window--new}]
|
80
|
+
image:/assets/images/badges/docsBinder.png[[Binder, link="{binder--docs}", {browser-window--new}]
|
81
|
+
endif::[]
|
82
|
+
|
83
|
+
|
84
|
+
// Include sub-documents (if any)
|
85
|
+
// -----------------------------------------------------------------------------
|
86
|
+
|
87
|
+
The package at Github link:{url-j1-repo--j1-nbinteract}[j1-nbinteract, {browser-window--new}]
|
88
|
+
aims to enable authors and educators to create and share interactive web pages
|
89
|
+
easily. Interactive explanations of concepts are useful for communicating and
|
90
|
+
explaining complex concepts better. The package *j1-nbinteract* comes with a
|
91
|
+
set of backend functions that produce Javascript-based plots designed for
|
92
|
+
interaction. The package combines the _ipywidgets_ library and the _bqplot_
|
93
|
+
plotting library to implement function-driven interfaces for interactive
|
94
|
+
plotting.
|
95
|
+
|
96
|
+
CAUTION: The current version of j1-nbinteract *1.x* is limited to Notebook v6
|
97
|
+
(Classic Notebook). The latest version Jupyter Notebook v7 (JupyterLab) are
|
98
|
+
supported by upcoming versions of j1-nbinteract *2.x*.
|
99
|
+
|
100
|
+
The j1-nbinteract plotting methods use _ipywidgets_ to generate and display
|
101
|
+
widgets, inferring the widget type automatically as needed. When a user
|
102
|
+
interacts with a widget, a Python callback updates the visualization *without*
|
103
|
+
a complete rerender. This noticeably lowers visualization update time compared
|
104
|
+
to using ipywidgets for other plotting libraries that render *static images*.
|
105
|
+
|
106
|
+
== Histogram
|
107
|
+
|
108
|
+
The widget `nbinteract.hist` generates an interactive histogram that allows
|
109
|
+
users to change the parameters of the input hist_function.
|
110
|
+
|
111
|
+
=== Example
|
112
|
+
|
113
|
+
[source, python, role="noclip"]
|
114
|
+
----
|
115
|
+
def hist_function(mean, sd, size=1000):
|
116
|
+
'''
|
117
|
+
Returns 1000 values picked at random from the normal
|
118
|
+
distribution with the Mean value and SD given.
|
119
|
+
'''
|
120
|
+
return np.random.normal(loc=mean, scale=sd, size=1000)
|
121
|
+
|
122
|
+
|
123
|
+
options = {
|
124
|
+
'title': 'Histogram',
|
125
|
+
'xlabel': 'Mean value (mean)',
|
126
|
+
'ylabel': 'Standard Deviation (sd)',
|
127
|
+
'bins': 10
|
128
|
+
}
|
129
|
+
|
130
|
+
layouts = {
|
131
|
+
'plot_height': '480px',
|
132
|
+
'plot_width': '800px',
|
133
|
+
}
|
134
|
+
|
135
|
+
hist_chart = nbi.hist(
|
136
|
+
hist_function,
|
137
|
+
mean=(0, 10),
|
138
|
+
sd=(0.2, 2.0, 0.2),
|
139
|
+
options=options,
|
140
|
+
layouts=layouts
|
141
|
+
)
|
142
|
+
|
143
|
+
hist_chart
|
144
|
+
----
|
145
|
+
|
146
|
+
=== Rendered Histogram
|
147
|
+
|
148
|
+
lightbox::nbi-widget--hist[1280, {image-nbi-widget--hist}, role="mt-3 mb-4"]
|
149
|
+
|
150
|
+
TIP: Find an live example on page:
|
151
|
+
link:{url-nbinteract-common-widget--histogram}[Common used widgets -- Histogram, {browser-window--new}].
|
152
|
+
|
153
|
+
=== Synopsis
|
154
|
+
|
155
|
+
[source, python, role="noclip"]
|
156
|
+
----
|
157
|
+
nbinteract.hist(
|
158
|
+
hist_function,
|
159
|
+
*, <1>
|
160
|
+
options={},
|
161
|
+
layouts={},
|
162
|
+
**interact_params
|
163
|
+
)
|
164
|
+
----
|
165
|
+
<1> arbitrary variables to control the `hist_function`
|
166
|
+
|
167
|
+
=== Options
|
168
|
+
|
169
|
+
[source, python, role="noclip"]
|
170
|
+
----
|
171
|
+
hist_function (Array | (*args -> Array int | Array float)):
|
172
|
+
Function that takes in parameters to interact with and returns an
|
173
|
+
array of numbers. These numbers will be plotted in the resulting
|
174
|
+
histogram.
|
175
|
+
----
|
176
|
+
|
177
|
+
[source, python, role="noclip"]
|
178
|
+
----
|
179
|
+
interact_params (dict):
|
180
|
+
Keyword arguments in the same format as `ipywidgets.interact`.
|
181
|
+
One parameter is required for each argument of both `x_fn` and `y_fn`.
|
182
|
+
If `x_fn` and `y_fn` have conflicting parameter names, prefix the
|
183
|
+
corresponding kwargs with `x__` and
|
184
|
+
`y__`.
|
185
|
+
----
|
186
|
+
|
187
|
+
.Available options (Python dict)
|
188
|
+
[cols="^3a,^3a,^6a", subs=+macros, options="header", width="100%", role="rtable mt-3"]
|
189
|
+
|===
|
190
|
+
|Name |Value |Description
|
191
|
+
|
192
|
+
|`title`
|
193
|
+
|empty string
|
194
|
+
|Title of the plot
|
195
|
+
|
196
|
+
|`aspect_ratio`
|
197
|
+
|float
|
198
|
+
|Aspect ratio of the figure, defaults 16:9 ratio
|
199
|
+
|
200
|
+
|`animation_duration`
|
201
|
+
|int
|
202
|
+
|Duration of transition on change of the data measured in milliseconds
|
203
|
+
|
204
|
+
|`xlabel`
|
205
|
+
|empty string
|
206
|
+
|Label of the x-axis
|
207
|
+
|
208
|
+
|`ylabel`
|
209
|
+
|empty string
|
210
|
+
|Label of the y-axis
|
211
|
+
|
212
|
+
|`xlim`
|
213
|
+
|Tuple
|
214
|
+
|Contains the (lower, upper) values for x-axis
|
215
|
+
|
216
|
+
|`ylim`
|
217
|
+
|Tuple
|
218
|
+
|Contains the (lower, upper) values for y-axis
|
219
|
+
|
220
|
+
|`bins`
|
221
|
+
|int (positive)
|
222
|
+
|Non-negative int for the number of Towers (bars) generated for the
|
223
|
+
histogram. Default: 10
|
224
|
+
|
225
|
+
|`normalized`
|
226
|
+
|Boolean (True\|False)
|
227
|
+
|Normalize histogram area to 1 if `True`. If `False`, plots unmodified
|
228
|
+
counts. Default: `True`
|
229
|
+
|
230
|
+
|===
|
231
|
+
|
232
|
+
.Available layout settings (Python dict)
|
233
|
+
[cols="^3a,^3a,^6a", subs=+macros, options="header", width="100%", role="rtable mt-3"]
|
234
|
+
|===
|
235
|
+
|Name |Value |Description
|
236
|
+
|
237
|
+
|`plot_height`
|
238
|
+
|string
|
239
|
+
|Specifies the `height` of the plot measured in pixels (px).
|
240
|
+
Default: 400px
|
241
|
+
|
242
|
+
|`plot_width`
|
243
|
+
|string
|
244
|
+
|Specifies the `width` of the plot measured in pixels (px).
|
245
|
+
Default: 640px
|
246
|
+
|
247
|
+
|===
|
248
|
+
|
249
|
+
== Bar chart
|
250
|
+
|
251
|
+
The widget `nbinteract.bar` generates an interactive bar chart that allows
|
252
|
+
users to change the parameters of the inputs x_fn and y_fn.
|
253
|
+
|
254
|
+
=== Example
|
255
|
+
|
256
|
+
[source, python, role="noclip"]
|
257
|
+
----
|
258
|
+
import nbinteract as nbi
|
259
|
+
import numpy as np
|
260
|
+
|
261
|
+
def x_fn(n):
|
262
|
+
return np.arange(n)
|
263
|
+
|
264
|
+
def y_fn(xs, offset):
|
265
|
+
return xs + offset
|
266
|
+
|
267
|
+
|
268
|
+
options = {
|
269
|
+
'ylim': (0, 20),
|
270
|
+
}
|
271
|
+
|
272
|
+
layouts = {
|
273
|
+
'plot_height': '480px',
|
274
|
+
'plot_width': '800px',
|
275
|
+
}
|
276
|
+
|
277
|
+
bar_chart = nbi.bar(
|
278
|
+
x_fn,
|
279
|
+
y_fn,
|
280
|
+
n=(3, 10),
|
281
|
+
offset=(1, 10),
|
282
|
+
options=options,
|
283
|
+
layouts=layouts
|
284
|
+
)
|
285
|
+
# print("Barchart Dataset: ", bar_chart)
|
286
|
+
|
287
|
+
bar_chart
|
288
|
+
----
|
289
|
+
|
290
|
+
=== Rendered Bar chart
|
291
|
+
|
292
|
+
lightbox::nbi-widget--bar[1280, {image-nbi-widget--bar}, role="mt-3 mb-4"]
|
293
|
+
|
294
|
+
TIP: Find an live example on page:
|
295
|
+
link:{url-nbinteract-common-widget--barchart}[Common used widgets -- Barchart, {browser-window--new}].
|
296
|
+
|
297
|
+
=== Synopsis
|
298
|
+
|
299
|
+
[source, python, role="noclip"]
|
300
|
+
----
|
301
|
+
nbinteract.bar(
|
302
|
+
x_fn,
|
303
|
+
y_fn,
|
304
|
+
*, <1>
|
305
|
+
options={},
|
306
|
+
layouts={},
|
307
|
+
**interact_params
|
308
|
+
)
|
309
|
+
----
|
310
|
+
<1> arbitrary variables to control the functions `x_fn` and `y_fn`
|
311
|
+
|
312
|
+
=== Options
|
313
|
+
|
314
|
+
[source, python, role="noclip"]
|
315
|
+
----
|
316
|
+
x_fn (Array | (*args -> Array str | Array int | Array float)):
|
317
|
+
If array, uses array values for categories of bar chart.
|
318
|
+
|
319
|
+
If function, must take parameters to interact with and return an
|
320
|
+
array of strings or numbers. These will become the categories on
|
321
|
+
the x-axis of the bar chart.
|
322
|
+
|
323
|
+
y_fn (Array | (Array, *args -> Array int | Array float)):
|
324
|
+
If array, uses array values for heights of bars.
|
325
|
+
|
326
|
+
If function, must take in the output of x_fn as its first parameter
|
327
|
+
and optionally other parameters to interact with. Must return an
|
328
|
+
array of numbers. These will become the heights of the bars on the
|
329
|
+
y-axis.
|
330
|
+
----
|
331
|
+
|
332
|
+
.Available options (Python dict)
|
333
|
+
[cols="^3a,^3a,^6a", subs=+macros, options="header", width="100%", role="rtable mt-3"]
|
334
|
+
|===
|
335
|
+
|Name |Value |Description
|
336
|
+
|
337
|
+
|`title`
|
338
|
+
|empty string
|
339
|
+
|Title of the plot
|
340
|
+
|
341
|
+
|`aspect_ratio`
|
342
|
+
|float
|
343
|
+
|Aspect ratio of the figure, defaults 16:9 ratio
|
344
|
+
|
345
|
+
|`animation_duration`
|
346
|
+
|int
|
347
|
+
|Duration of transition on change of the data measured in milliseconds
|
348
|
+
|
349
|
+
|`xlabel`
|
350
|
+
|empty string
|
351
|
+
|Label of the x-axis
|
352
|
+
|
353
|
+
|`ylabel`
|
354
|
+
|empty string
|
355
|
+
|Label of the y-axis
|
356
|
+
|
357
|
+
|`xlim`
|
358
|
+
|Tuple
|
359
|
+
|Contains the (lower, upper) values for x-axis
|
360
|
+
|
361
|
+
|`ylim`
|
362
|
+
|Tuple
|
363
|
+
|Contains the (lower, upper) values for y-axis
|
364
|
+
|
365
|
+
|===
|
366
|
+
|
367
|
+
.Available layout settings (Python dict)
|
368
|
+
[cols="^3a,^3a,^6a", subs=+macros, options="header", width="100%", role="rtable mt-3"]
|
369
|
+
|===
|
370
|
+
|Name |Value |Description
|
371
|
+
|
372
|
+
|`plot_height`
|
373
|
+
|string
|
374
|
+
|Specifies the `height` of the plot measured in pixels (px).
|
375
|
+
Default: 400px
|
376
|
+
|
377
|
+
|`plot_width`
|
378
|
+
|string
|
379
|
+
|Specifies the `width` of the plot measured in pixels (px).
|
380
|
+
Default: 640px
|
381
|
+
|
382
|
+
|===
|
383
|
+
|
384
|
+
|
385
|
+
== Interactive Scatter Chart
|
386
|
+
|
387
|
+
The widget `nbinteract.scatter_drag` generates an interactive scatter plot
|
388
|
+
with the best *fit line* plotted over the points. The points can be dragged
|
389
|
+
by the user and the line will automatically update.
|
390
|
+
|
391
|
+
=== Example
|
392
|
+
|
393
|
+
[source, python, role="noclip"]
|
394
|
+
----
|
395
|
+
import nbinteract as nbi
|
396
|
+
import numpy as np
|
397
|
+
from numpy import arange
|
398
|
+
|
399
|
+
x_points = np.arange(10)
|
400
|
+
y_points = np.arange(10) + np.random.rand(10)
|
401
|
+
|
402
|
+
|
403
|
+
options = {
|
404
|
+
'title': 'Interactive Scatter Plot',
|
405
|
+
'xlabel': 'x-values',
|
406
|
+
'ylabel': 'y-values',
|
407
|
+
'xlim': (0, 10),
|
408
|
+
'ylim': (0, 10),
|
409
|
+
'animation_duration': 1000
|
410
|
+
}
|
411
|
+
|
412
|
+
layouts = {
|
413
|
+
'plot_height': '480px',
|
414
|
+
'plot_width': '800px',
|
415
|
+
}
|
416
|
+
|
417
|
+
scatter_drag = nbi.scatter_drag(
|
418
|
+
x_points,
|
419
|
+
y_points,
|
420
|
+
options=options,
|
421
|
+
layouts=layouts
|
422
|
+
)
|
423
|
+
|
424
|
+
scatter_drag
|
425
|
+
----
|
426
|
+
|
427
|
+
=== Rendered Interactive Scatter Chart
|
428
|
+
|
429
|
+
lightbox::nbi-widget--scatter-drag[1280, {image-nbi-widget--scatter-drag}, role="mt-3 mb-4"]
|
430
|
+
|
431
|
+
|
432
|
+
TIP: Find an live example on page:
|
433
|
+
link:{url-nbinteract-common-widget--i_scatter}[Common used widgets -- Interactive Scatter Chart, {browser-window--new}].
|
434
|
+
|
435
|
+
|
436
|
+
=== Synopsis
|
437
|
+
|
438
|
+
[source, python, role="noclip"]
|
439
|
+
----
|
440
|
+
nbinteract.scatter_drag(
|
441
|
+
x_points: 'Array',
|
442
|
+
y_points: 'Array',
|
443
|
+
options={},
|
444
|
+
layouts={}
|
445
|
+
)
|
446
|
+
----
|
447
|
+
|
448
|
+
=== Options
|
449
|
+
|
450
|
+
[source, python, role="noclip"]
|
451
|
+
----
|
452
|
+
x_points (Array Number): x-values of points to plot
|
453
|
+
y_points (Array Number): y-values of points to plot
|
454
|
+
----
|
455
|
+
|
456
|
+
.Available options (Python dict)
|
457
|
+
[cols="^3a,^3a,^6a", subs=+macros, options="header", width="100%", role="rtable mt-3"]
|
458
|
+
|===
|
459
|
+
|Name |Value |Description
|
460
|
+
|
461
|
+
|`title`
|
462
|
+
|empty string
|
463
|
+
|Title of the plot
|
464
|
+
|
465
|
+
|`aspect_ratio`
|
466
|
+
|float
|
467
|
+
|Aspect ratio of the figure, defaults 16:9 ratio
|
468
|
+
|
469
|
+
|`animation_duration`
|
470
|
+
|int
|
471
|
+
|Duration of transition on change of the data measured in milliseconds
|
472
|
+
|
473
|
+
|`xlabel`
|
474
|
+
|empty string
|
475
|
+
|Label of the x-axis
|
476
|
+
|
477
|
+
|`ylabel`
|
478
|
+
|empty string
|
479
|
+
|Label of the y-axis
|
480
|
+
|
481
|
+
|`xlim`
|
482
|
+
|Tuple
|
483
|
+
|Contains the (lower, upper) values for x-axis
|
484
|
+
|
485
|
+
|`ylim`
|
486
|
+
|Tuple
|
487
|
+
|Contains the (lower, upper) values for y-axis
|
488
|
+
|
489
|
+
|===
|
490
|
+
|
491
|
+
.Available layout settings (Python dict)
|
492
|
+
[cols="^3a,^3a,^6a", subs=+macros, options="header", width="100%", role="rtable mt-3"]
|
493
|
+
|===
|
494
|
+
|Name |Value |Description
|
495
|
+
|
496
|
+
|`plot_height`
|
497
|
+
|string
|
498
|
+
|Specifies the `height` of the plot measured in pixels (px).
|
499
|
+
Default: 400px
|
500
|
+
|
501
|
+
|`plot_width`
|
502
|
+
|string
|
503
|
+
|Specifies the `width` of the plot measured in pixels (px).
|
504
|
+
Default: 640px
|
505
|
+
|
506
|
+
|===
|
507
|
+
|
508
|
+
|
509
|
+
== Scatter Chart
|
510
|
+
|
511
|
+
The widget `nbinteract.scatter` generates an interactive scatter chart that
|
512
|
+
allows users to change the parameters of the inputs x_fn and y_fn.
|
513
|
+
|
514
|
+
=== Example
|
515
|
+
|
516
|
+
[source, python, role="noclip"]
|
517
|
+
----
|
518
|
+
def x_fn(n):
|
519
|
+
return np.random.choice(100, n)
|
520
|
+
|
521
|
+
def y_fn(xs):
|
522
|
+
return np.random.choice(100, len(xs))
|
523
|
+
|
524
|
+
|
525
|
+
options = {
|
526
|
+
'title': 'Scatter Plot',
|
527
|
+
'marker': 'circle',
|
528
|
+
'animation_duration': 1000,
|
529
|
+
'xlabel': 'x-values',
|
530
|
+
'ylabel': 'y-values',
|
531
|
+
'xlim': (0, 100),
|
532
|
+
'ylim': (0, 100)
|
533
|
+
}
|
534
|
+
|
535
|
+
layouts = {
|
536
|
+
'plot_height': '480px',
|
537
|
+
'plot_width': '800px',
|
538
|
+
}
|
539
|
+
|
540
|
+
scatter_chart = nbi.scatter(
|
541
|
+
x_fn,
|
542
|
+
y_fn,
|
543
|
+
n=(10,200),
|
544
|
+
options=options,
|
545
|
+
layouts=layouts
|
546
|
+
)
|
547
|
+
|
548
|
+
scatter_chart
|
549
|
+
----
|
550
|
+
|
551
|
+
=== Rendered Scatter Chart
|
552
|
+
|
553
|
+
lightbox::nbi-widget--scatter[1280, {image-nbi-widget--scatter}, role="mt-3 mb-4"]
|
554
|
+
|
555
|
+
TIP: Find an live example on page:
|
556
|
+
link:{url-nbinteract-common-widget--scatter}[Common used widgets -- Scatter Chart, {browser-window--new}].
|
557
|
+
|
558
|
+
|
559
|
+
=== Synopsis
|
560
|
+
|
561
|
+
[source, python, role="noclip"]
|
562
|
+
----
|
563
|
+
nbinteract.scatter(
|
564
|
+
x_fn,
|
565
|
+
y_fn,
|
566
|
+
*, <1>
|
567
|
+
options={},
|
568
|
+
layouts={},
|
569
|
+
**interact_params
|
570
|
+
)
|
571
|
+
----
|
572
|
+
<1> arbitrary variables to control the functions `x_fn` and `y_fn`
|
573
|
+
|
574
|
+
=== Options
|
575
|
+
|
576
|
+
[source, python, role="noclip"]
|
577
|
+
----
|
578
|
+
x_fn (Array | (*args -> Array str | Array int | Array float)):
|
579
|
+
If array, uses array values for x-coordinates.
|
580
|
+
|
581
|
+
If function, must take parameters to interact with and return an
|
582
|
+
array of strings or numbers. These will become the x-coordinates
|
583
|
+
of the scatter plot.
|
584
|
+
|
585
|
+
y_fn (Array | (Array, *args -> Array int | Array float)):
|
586
|
+
If array, uses array values for y-coordinates.
|
587
|
+
|
588
|
+
If function, must take in the output of x_fn as its first parameter
|
589
|
+
and optionally other parameters to interact with. Must return an
|
590
|
+
array of numbers. These will become the y-coordinates of the
|
591
|
+
scatter plot.
|
592
|
+
----
|
593
|
+
|
594
|
+
.Available options (Python dict)
|
595
|
+
[cols="^3a,^3a,^6a", subs=+macros, options="header", width="100%", role="rtable mt-3"]
|
596
|
+
|===
|
597
|
+
|Name |Value |Description
|
598
|
+
|
599
|
+
|`title`
|
600
|
+
|empty string
|
601
|
+
|Title of the plot
|
602
|
+
|
603
|
+
|`aspect_ratio`
|
604
|
+
|float
|
605
|
+
|Aspect ratio of the figure, defaults 16:9 ratio
|
606
|
+
|
607
|
+
|`animation_duration`
|
608
|
+
|int
|
609
|
+
|Duration of transition on change of the data measured in milliseconds
|
610
|
+
|
611
|
+
|`xlabel`
|
612
|
+
|empty string
|
613
|
+
|Label of the x-axis
|
614
|
+
|
615
|
+
|`ylabel`
|
616
|
+
|empty string
|
617
|
+
|Label of the y-axis
|
618
|
+
|
619
|
+
|`xlim`
|
620
|
+
|Tuple
|
621
|
+
|Contains the (lower, upper) values for x-axis
|
622
|
+
|
623
|
+
|`ylim`
|
624
|
+
|Tuple
|
625
|
+
|Contains the (lower, upper) values for y-axis
|
626
|
+
|
627
|
+
|`marker`
|
628
|
+
|`circle`\|`cross`\|`diamond`\|`square`\|`triangle-down`\|`triangle-up`\|`arrow`\|`rectangle`\|`ellipse`
|
629
|
+
|Shape of marker plots. Default: `circle`
|
630
|
+
|
631
|
+
|
632
|
+
|===
|
633
|
+
|
634
|
+
.Available layout settings (Python dict)
|
635
|
+
[cols="^3a,^3a,^6a", subs=+macros, options="header", width="100%", role="rtable mt-3"]
|
636
|
+
|===
|
637
|
+
|Name |Value |Description
|
638
|
+
|
639
|
+
|`plot_height`
|
640
|
+
|string
|
641
|
+
|Specifies the `height` of the plot measured in pixels (px).
|
642
|
+
Default: 400px
|
643
|
+
|
644
|
+
|`plot_width`
|
645
|
+
|string
|
646
|
+
|Specifies the `width` of the plot measured in pixels (px).
|
647
|
+
Default: 640px
|
648
|
+
|
649
|
+
|===
|
650
|
+
|
651
|
+
|
652
|
+
== Line Chart
|
653
|
+
|
654
|
+
Generates an interactive line chart that allows users to change the
|
655
|
+
parameters of the inputs `x_fn` and `y_fn`. The first two arguments of
|
656
|
+
`line` are *response functions* that return the x and y-axis coordinates.
|
657
|
+
|
658
|
+
Either argument can be *arrays* themselves. Arguments for the response
|
659
|
+
functions must be passed in as keyword arguments to line in the format
|
660
|
+
expected by interact. The response function for the y-coordinates will
|
661
|
+
be called with the x-coordinates as its first argument.
|
662
|
+
|
663
|
+
=== Example
|
664
|
+
|
665
|
+
[source, python, role="noclip"]
|
666
|
+
----
|
667
|
+
import nbinteract as nbi
|
668
|
+
import numpy as np
|
669
|
+
from numpy import arange
|
670
|
+
|
671
|
+
def x_fn(max):
|
672
|
+
return np.arange(0, max + 1)
|
673
|
+
|
674
|
+
def y_fn(xs, sd):
|
675
|
+
return xs + np.random.normal(0, scale=sd, size=len(xs))
|
676
|
+
|
677
|
+
|
678
|
+
options = {
|
679
|
+
'title': 'Line chart',
|
680
|
+
'xlabel': 'x-values (max)',
|
681
|
+
'ylabel': 'y-values (sd)',
|
682
|
+
'xlim': (0, 50),
|
683
|
+
'ylim': (-20, 70),
|
684
|
+
'animation_duration': 500
|
685
|
+
}
|
686
|
+
|
687
|
+
layouts = {
|
688
|
+
'plot_height': '480px',
|
689
|
+
'plot_width': '800px',
|
690
|
+
}
|
691
|
+
|
692
|
+
line_chart = nbi.line(
|
693
|
+
x_fn,
|
694
|
+
y_fn,
|
695
|
+
max=(10, 50),
|
696
|
+
sd=(0, 10),
|
697
|
+
options=options,
|
698
|
+
layouts=layouts
|
699
|
+
)
|
700
|
+
|
701
|
+
line_chart
|
702
|
+
----
|
703
|
+
|
704
|
+
=== Rendered Line Chart
|
705
|
+
|
706
|
+
lightbox::nbi-widget--line[1280, {image-nbi-widget--line}, role="mt-3 mb-4"]
|
707
|
+
|
708
|
+
TIP: Find an live example on page:
|
709
|
+
link:{url-nbinteract-common-widget--line}[Common used widgets -- Line Chart, {browser-window--new}].
|
710
|
+
|
711
|
+
|
712
|
+
=== Synopsis
|
713
|
+
|
714
|
+
[source, python, role="noclip"]
|
715
|
+
----
|
716
|
+
nbinteract.line(
|
717
|
+
x_fn,
|
718
|
+
y_fn,
|
719
|
+
*, <1>
|
720
|
+
options={},
|
721
|
+
layouts={},
|
722
|
+
**interact_params
|
723
|
+
)
|
724
|
+
----
|
725
|
+
<1> arbitrary variables to control the functions `x_fn` and `y_fn`
|
726
|
+
|
727
|
+
=== Options
|
728
|
+
|
729
|
+
[source, python, role="noclip"]
|
730
|
+
----
|
731
|
+
x_fn (Array | (*args -> Array str | Array int | Array float)):
|
732
|
+
If array, uses array values for x-coordinates.
|
733
|
+
|
734
|
+
If function, must take parameters to interact with and return an
|
735
|
+
array of strings or numbers. These will become the x-coordinates
|
736
|
+
of the line plot.
|
737
|
+
|
738
|
+
y_fn (Array | (Array, *args -> Array int | Array float)):
|
739
|
+
If array, uses array values for y-coordinates.
|
740
|
+
|
741
|
+
If function, must take in the output of x_fn as its first parameter
|
742
|
+
and optionally other parameters to interact with. Must return an
|
743
|
+
array of numbers. These will become the y-coordinates of the line
|
744
|
+
plot.
|
745
|
+
----
|
746
|
+
|
747
|
+
[source, python, role="noclip"]
|
748
|
+
----
|
749
|
+
interact_params (dict):
|
750
|
+
Keyword arguments in the same format as `ipywidgets.interact`.
|
751
|
+
One parameter is required for each argument of both `x_fn` and `y_fn`.
|
752
|
+
If `x_fn` and `y_fn` have conflicting parameter names, prefix the
|
753
|
+
corresponding kwargs with `x__` and `y__`
|
754
|
+
----
|
755
|
+
|
756
|
+
.Available options (Python dict)
|
757
|
+
[cols="^3a,^3a,^6a", subs=+macros, options="header", width="100%", role="rtable mt-3"]
|
758
|
+
|===
|
759
|
+
|Name |Value |Description
|
760
|
+
|
761
|
+
|`title`
|
762
|
+
|empty string
|
763
|
+
|Title of the plot
|
764
|
+
|
765
|
+
|`aspect_ratio`
|
766
|
+
|float
|
767
|
+
|Aspect ratio of the figure, defaults 16:9 ratio
|
768
|
+
|
769
|
+
|`animation_duration`
|
770
|
+
|int
|
771
|
+
|Duration of transition on change of the data measured in milliseconds
|
772
|
+
|
773
|
+
|`xlabel`
|
774
|
+
|empty string
|
775
|
+
|Label of the x-axis
|
776
|
+
|
777
|
+
|`ylabel`
|
778
|
+
|empty string
|
779
|
+
|Label of the y-axis
|
780
|
+
|
781
|
+
|`xlim`
|
782
|
+
|Tuple
|
783
|
+
|Contains the (lower, upper) values for x-axis
|
784
|
+
|
785
|
+
|`ylim`
|
786
|
+
|Tuple
|
787
|
+
|Contains the (lower, upper) values for y-axis
|
788
|
+
|
789
|
+
|===
|
790
|
+
|
791
|
+
.Available layout settings (Python dict)
|
792
|
+
[cols="^3a,^3a,^6a", subs=+macros, options="header", width="100%", role="rtable mt-3"]
|
793
|
+
|===
|
794
|
+
|Name |Value |Description
|
795
|
+
|
796
|
+
|`plot_height`
|
797
|
+
|string
|
798
|
+
|Specifies the `height` of the plot measured in pixels (px).
|
799
|
+
Default: 400px
|
800
|
+
|
801
|
+
|`plot_width`
|
802
|
+
|string
|
803
|
+
|Specifies the `width` of the plot measured in pixels (px).
|
804
|
+
Default: 640px
|
805
|
+
|
806
|
+
|===
|
807
|
+
|
808
|
+
== Multiple Choice
|
809
|
+
|
810
|
+
Generates a multiple choice question that allows the user to select an
|
811
|
+
answer choice and shows whether choice was correct.
|
812
|
+
|
813
|
+
=== Example
|
814
|
+
|
815
|
+
[source, python, role="noclip"]
|
816
|
+
----
|
817
|
+
import nbinteract as nbi
|
818
|
+
|
819
|
+
multiple_choice = nbi.multiple_choice(
|
820
|
+
question="Select all prime numbers.",
|
821
|
+
choices=['12', '3', '31'],
|
822
|
+
answers=[1, 2]
|
823
|
+
)
|
824
|
+
|
825
|
+
multiple_choice
|
826
|
+
----
|
827
|
+
|
828
|
+
=== Rendered Multiple Choice
|
829
|
+
|
830
|
+
lightbox::nbi-widget--multiple-choice[1280, {image-nbi-widget--multiple-choice}, role="mt-3 mb-4"]
|
831
|
+
|
832
|
+
TIP: Find an live example on page:
|
833
|
+
link:{url-nbinteract-common-widget--multiple_choice}[Common used widgets -- Multiple Choice, {browser-window--new}].
|
834
|
+
|
835
|
+
=== Synopsis
|
836
|
+
|
837
|
+
[source, python, role="noclip"]
|
838
|
+
----
|
839
|
+
nbinteract.multiple_choice(
|
840
|
+
question,
|
841
|
+
choices,
|
842
|
+
answers
|
843
|
+
)
|
844
|
+
----
|
845
|
+
|
846
|
+
=== Options
|
847
|
+
|
848
|
+
.Available options (Python dict)
|
849
|
+
[cols="^3a,^3a,^6a", subs=+macros, options="header", width="100%", role="rtable mt-3"]
|
850
|
+
|===
|
851
|
+
|Name |Value |Description
|
852
|
+
|
853
|
+
|`question`
|
854
|
+
|empty string
|
855
|
+
|Question text displayed above choices
|
856
|
+
|
857
|
+
|`choices`
|
858
|
+
|list (string)
|
859
|
+
|Answer choices that user can select
|
860
|
+
|
861
|
+
|`answers`
|
862
|
+
|int \| iterable int
|
863
|
+
|Either an integer or iterable of integers. Each integer in answers
|
864
|
+
corresponds to the index of the correct choice in `choices`
|
865
|
+
|
866
|
+
|===
|
867
|
+
|
868
|
+
|
869
|
+
== Short Answer
|
870
|
+
|
871
|
+
Generates a short answer question that allows user to input an answer in
|
872
|
+
a textbox and a submit button to check the answer.
|
873
|
+
|
874
|
+
=== Example
|
875
|
+
|
876
|
+
[source, python, role="noclip"]
|
877
|
+
----
|
878
|
+
import nbinteract as nbi
|
879
|
+
|
880
|
+
short_answer = nbi.short_answer(
|
881
|
+
'What is 1+1?',
|
882
|
+
answers='2',
|
883
|
+
explanation='1+1 is 2'
|
884
|
+
)
|
885
|
+
|
886
|
+
short_answer
|
887
|
+
----
|
888
|
+
|
889
|
+
=== Rendered Short Answer
|
890
|
+
|
891
|
+
lightbox::nbi-widget--short_answer[1280, {image-nbi-widget--short-answer}, role="mt-3 mb-4"]
|
892
|
+
|
893
|
+
TIP: Find an live examples on page:
|
894
|
+
link:{url-nbinteract-common-widget--short_answer}[Common used widgets -- Short Answer, {browser-window--new}].
|
895
|
+
|
896
|
+
=== Synopsis
|
897
|
+
|
898
|
+
[source, python, role="noclip"]
|
899
|
+
----
|
900
|
+
nbinteract.short_answer(
|
901
|
+
question,
|
902
|
+
answers,
|
903
|
+
explanation
|
904
|
+
)
|
905
|
+
----
|
906
|
+
|
907
|
+
=== Options
|
908
|
+
|
909
|
+
.Available options (Python dict)
|
910
|
+
[cols="^3a,^3a,^6a", subs=+macros, options="header", width="100%", role="rtable mt-3"]
|
911
|
+
|===
|
912
|
+
|Name |Value |Description
|
913
|
+
|
914
|
+
|`question`
|
915
|
+
|empty string
|
916
|
+
|The question being asked
|
917
|
+
|
918
|
+
|`answers`
|
919
|
+
|int \| iterable int
|
920
|
+
|Either an integer or iterable of integers. Each integer in answers
|
921
|
+
corresponds to the index of the correct choice in `choices`
|
922
|
+
|
923
|
+
|`explanation`
|
924
|
+
|list (string)
|
925
|
+
|The explanation to the question is displayed if the user inputs the
|
926
|
+
correct answer. Default: `None`
|
927
|
+
|
928
|
+
|===
|