Session Ready
Exercise

Starting tabbed layouts

Tabbed layouts can be created in Bokeh by placing plots or layouts in Panels.

In this exercise, you'll take the four fertility vs female literacy plots from the last exercise and make a Panel() for each.

No figure will be generated in this exercise. Instead, you will use these panels in the next exercise to build and display a tabbed layout.

Instructions
100 XP
  • Import Panel from bokeh.models.widgets.
  • Create a new panel tab1 with child p1 and a title of 'Latin America'.
  • Create a new panel tab2 with child p2 and a title of 'Africa'.
  • Create a new panel tab3 with child p3 and a title of 'Asia'.
  • Create a new panel tab4 with child p4 and a title of 'Europe'.
  • Click submit to check your work.