{ "cells": [ { "cell_type": "code", "execution_count": null, "metadata": { "tags": [ "parameters" ] }, "outputs": [], "source": [ "flex_subtitle = \"built using jupyter-flex\"\n", "flex_source_link = \"https://github.com/danielfrg/jupyter-flex/blob/master/examples/layouts/card-complete.ipynb\"\n", "flex_include_source = True" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# A card with all the items" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Card header" ] }, { "cell_type": "markdown", "metadata": { "tags": [ "body" ] }, "source": [ "This is a markdown cell, **all** *regular* syntax ~~should~~ works." ] }, { "cell_type": "markdown", "metadata": { "tags": [ "body" ] }, "source": [ "This is another markdown cell, you can have multiple text cells and the main chart is expanded." ] }, { "cell_type": "code", "execution_count": null, "metadata": { "tags": [ "source" ] }, "outputs": [], "source": [ "import plotly\n", "import plotly.express as px" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "tags": [ "source" ] }, "outputs": [], "source": [ "df = px.data.iris()" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "tags": [ "body" ] }, "outputs": [], "source": [ "fig = px.scatter(df, x=\"sepal_width\", y=\"sepal_length\")\n", "fig.show()" ] }, { "cell_type": "markdown", "metadata": { "tags": [ "body" ] }, "source": [ "This is more markdown below the main content" ] }, { "cell_type": "markdown", "metadata": { "tags": [ "body" ] }, "source": [ "Click on the help button in the corner to open the help modal." ] }, { "cell_type": "markdown", "metadata": { "tags": [ "footer" ] }, "source": [ "This is a MD cell on the footer, we can use [regular md](https://google.com) an even show code, for example:" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "tags": [ "footer" ] }, "outputs": [], "source": [ "\"plotly version: \" + plotly.__version__" ] }, { "cell_type": "markdown", "metadata": { "tags": [ "help" ] }, "source": [ "This is the help modal, the title above ^^ is the same card header and this is just a regular markdown cell." ] }, { "cell_type": "code", "execution_count": null, "metadata": { "tags": [ "help" ] }, "outputs": [], "source": [ "\"This is code output\"" ] }, { "cell_type": "markdown", "metadata": { "tags": [ "help" ] }, "source": [ "You can have also have plots here" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "tags": [ "help" ] }, "outputs": [], "source": [ "fig = px.scatter(df, x=\"sepal_width\", y=\"sepal_length\")\n", "fig.show()" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Another card" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### A card with a lot of help" ] }, { "cell_type": "markdown", "metadata": { "tags": [ "body" ] }, "source": [ "This is empty but click on the help button to see a lot of stuff" ] }, { "cell_type": "markdown", "metadata": { "tags": [ "help" ] }, "source": [ "# This is the title\n", "\n", "Text can be **bold**, _italic_, or ~~strikethrough~~. [Links](https://github.com) should be blue with no underlines (unless hovered over).\n", "\n", "There should be whitespace between paragraphs. There should be whitespace between paragraphs. There should be whitespace between paragraphs. There should be whitespace between paragraphs.\n", "\n", "There should be whitespace between paragraphs. There should be whitespace between paragraphs. There should be whitespace between paragraphs. There should be whitespace between paragraphs.\n", "\n", "> There should be no margin above this first sentence.\n", ">\n", "> Blockquotes should be a lighter gray with a gray border along the left side.\n", ">\n", "> There should be no margin below this final sentence.\n", "\n", "# Header 1\n", "\n", "This is a normal paragraph following a header. Bacon ipsum dolor sit amet t-bone doner shank drumstick, pork belly porchetta chuck sausage brisket ham hock rump pig. Chuck kielbasa leberkas, pork bresaola ham hock filet mignon cow shoulder short ribs biltong.\n", "\n", "## Header 2\n", "\n", "> This is a blockquote following a header. Bacon ipsum dolor sit amet t-bone doner shank drumstick, pork belly porchetta chuck sausage brisket ham hock rump pig. Chuck kielbasa leberkas, pork bresaola ham hock filet mignon cow shoulder short ribs biltong.\n", "\n", "### Header 3\n", "\n", "```\n", "This is a code block following a header.\n", "```\n", "\n", "#### Header 4\n", "\n", "* This is an unordered list following a header.\n", "* This is an unordered list following a header.\n", "* This is an unordered list following a header.\n", "\n", "##### Header 5\n", "\n", "1. This is an ordered list following a header.\n", "2. This is an ordered list following a header.\n", "3. This is an ordered list following a header.\n", "\n", "###### Header 6\n", "\n", "| What | Follows |\n", "|-----------|-----------------|\n", "| A table | A header |\n", "| A table | A header |\n", "| A table | A header |\n", "\n", "----------------\n", "\n", "There's a horizontal rule above and below this.\n", "\n", "----------------\n", "\n", "Here is an unordered list:\n", "\n", "* Salt-n-Pepa\n", "* Bel Biv DeVoe\n", "* Kid 'N Play\n", "\n", "And an ordered list:\n", "\n", "1. Michael Jackson\n", "2. Michael Bolton\n", "3. Michael Bublé\n", "\n", "And an unordered task list:\n", "\n", "- [x] Create a sample markdown document\n", "- [x] Add task lists to it\n", "- [ ] Take a vacation\n", "\n", "And a \"mixed\" task list:\n", "\n", "- [ ] Steal underpants\n", "- ?\n", "- [ ] Profit!\n", "\n", "And a nested list:\n", "\n", "* Jackson 5\n", " * Michael\n", " * Tito\n", " * Jackie\n", " * Marlon\n", " * Jermaine\n", "* TMNT\n", " * Leonardo\n", " * Michelangelo\n", " * Donatello\n", " * Raphael\n", "\n", "Definition lists can be used with HTML syntax. Definition terms are bold and italic.\n", "\n", "