Skip to content

Commit

Permalink
Prototype for floating images / div in slides (tested with pandas)
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidLeoni committed Aug 10, 2023
1 parent b2ea120 commit 41227c2
Show file tree
Hide file tree
Showing 10 changed files with 41,624 additions and 34 deletions.
15 changes: 15 additions & 0 deletions _static/css/softpython-slides.css
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,19 @@ div.jp-Cell-inputWrapper:has(.jp-InputArea-editor pre:only-child span:only-child
display:none !important;
}

/* attempt for https://github.com/DavidLeoni/jupman/issues/148
*/
.jupman-floating {

border-radius: 12px;
border: 0;

padding: 1.3em;

box-shadow: 2px 2px 2px 3px #3335;
}


/* *************** TABLES START ****************** */

.reveal table {
Expand Down Expand Up @@ -536,3 +549,5 @@ div.jp-Cell-inputWrapper:has(.jp-InputArea-editor pre:only-child span:only-child
/* min-width:100%; */
}
/************ ICP END */


2 changes: 2 additions & 0 deletions make_slides.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,8 @@

#ps = ps.replace('</head>', manual_reveal + '\n</head>')
ps = ps.replace('</head>', jupman + icp + ssds + '\n</head>')
# useful for weird floating placements you don't want to show in jupyter but only in slides
ps = ps.replace('data-jupman-style', 'style')
ps = ps.replace("Reveal.addEventListener('slidechanged', update);",
"""
Reveal.addEventListener('slidechanged', update);
Expand Down
Binary file added pandas/img/astropi-humidity-histogram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pandas/img/italy-population.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
44 changes: 27 additions & 17 deletions pandas/pandas1-sol.ipynb → pandas/pandas1-intro-sol.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -3767,7 +3767,7 @@
{
"data": {
"text/plain": [
"<pandas.core.strings.accessor.StringMethods at 0x7f817e58cfd0>"
"<pandas.core.strings.accessor.StringMethods at 0x7f321e97c710>"
]
},
"execution_count": 29,
Expand Down Expand Up @@ -4420,7 +4420,7 @@
},
{
"cell_type": "markdown",
"id": "6373cc3e",
"id": "936e08b4",
"metadata": {},
"source": [
"Selezioniamo per vedere il risultato:"
Expand Down Expand Up @@ -4810,7 +4810,7 @@
},
{
"cell_type": "markdown",
"id": "fa8db398",
"id": "e511b626",
"metadata": {
"slideshow": {
"slide_type": "fragment"
Expand Down Expand Up @@ -4933,7 +4933,7 @@
{
"cell_type": "code",
"execution_count": 45,
"id": "414a7a61",
"id": "2127964f",
"metadata": {
"slideshow": {
"slide_type": "-"
Expand Down Expand Up @@ -4968,7 +4968,7 @@
},
{
"cell_type": "markdown",
"id": "6ca7d541",
"id": "427a08d8",
"metadata": {
"slideshow": {
"slide_type": "fragment"
Expand Down Expand Up @@ -5005,7 +5005,7 @@
},
{
"cell_type": "markdown",
"id": "19a56bad",
"id": "05089695",
"metadata": {
"slideshow": {
"slide_type": "subslide"
Expand All @@ -5020,7 +5020,7 @@
{
"cell_type": "code",
"execution_count": 47,
"id": "fce8228d",
"id": "276148f7",
"metadata": {
"slideshow": {
"slide_type": "-"
Expand Down Expand Up @@ -5055,7 +5055,7 @@
},
{
"cell_type": "markdown",
"id": "f12716cd",
"id": "eb885def",
"metadata": {
"slideshow": {
"slide_type": "fragment"
Expand All @@ -5069,7 +5069,7 @@
},
{
"cell_type": "markdown",
"id": "03404bf9",
"id": "24b21638",
"metadata": {
"slideshow": {
"slide_type": "subslide"
Expand All @@ -5084,7 +5084,7 @@
{
"cell_type": "code",
"execution_count": 48,
"id": "2ed631e2",
"id": "932a33a5",
"metadata": {
"slideshow": {
"slide_type": "-"
Expand Down Expand Up @@ -5122,7 +5122,7 @@
},
{
"cell_type": "markdown",
"id": "0e34fb26",
"id": "46ef2021",
"metadata": {
"slideshow": {
"slide_type": "subslide"
Expand All @@ -5137,7 +5137,7 @@
{
"cell_type": "code",
"execution_count": 49,
"id": "6edf5214",
"id": "9bee43aa",
"metadata": {
"slideshow": {
"slide_type": "-"
Expand Down Expand Up @@ -5172,7 +5172,7 @@
},
{
"cell_type": "markdown",
"id": "73a90293",
"id": "93cc60ae",
"metadata": {
"slideshow": {
"slide_type": "subslide"
Expand All @@ -5185,7 +5185,7 @@
{
"cell_type": "code",
"execution_count": 50,
"id": "a064ca0a",
"id": "2e0f92c8",
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -5216,7 +5216,7 @@
},
{
"cell_type": "markdown",
"id": "654f3a5a",
"id": "2842b9eb",
"metadata": {
"slideshow": {
"slide_type": "subslide"
Expand All @@ -5229,7 +5229,7 @@
{
"cell_type": "code",
"execution_count": 51,
"id": "bf2dc1ef",
"id": "0418169f",
"metadata": {
"slideshow": {
"slide_type": "-"
Expand All @@ -5243,7 +5243,7 @@
{
"cell_type": "code",
"execution_count": 52,
"id": "83536858",
"id": "2662ab2a",
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -5370,6 +5370,16 @@
"df[ ['time_stamp', 'humidity_int', 'humidity' ] ]"
]
},
{
"cell_type": "markdown",
"id": "e738e3f1",
"metadata": {},
"source": [
"## Altri esercizi\n",
"\n",
"### [Vedere SoftPython](https://it.softpython.org/pandas/pandas1-intro-sol.html#7.-Altri-esercizi)"
]
},
{
"cell_type": "code",
"execution_count": 53,
Expand Down
44 changes: 27 additions & 17 deletions pandas/pandas1.ipynb → pandas/pandas1-intro.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -3762,7 +3762,7 @@
{
"data": {
"text/plain": [
"<pandas.core.strings.accessor.StringMethods at 0x7f817e58cfd0>"
"<pandas.core.strings.accessor.StringMethods at 0x7f321e97c710>"
]
},
"execution_count": 29,
Expand Down Expand Up @@ -4415,7 +4415,7 @@
},
{
"cell_type": "markdown",
"id": "6373cc3e",
"id": "936e08b4",
"metadata": {},
"source": [
"Selezioniamo per vedere il risultato:"
Expand Down Expand Up @@ -4805,7 +4805,7 @@
},
{
"cell_type": "markdown",
"id": "fa8db398",
"id": "e511b626",
"metadata": {
"slideshow": {
"slide_type": "fragment"
Expand Down Expand Up @@ -4928,7 +4928,7 @@
{
"cell_type": "code",
"execution_count": 45,
"id": "414a7a61",
"id": "2127964f",
"metadata": {
"slideshow": {
"slide_type": "-"
Expand Down Expand Up @@ -4963,7 +4963,7 @@
},
{
"cell_type": "markdown",
"id": "6ca7d541",
"id": "427a08d8",
"metadata": {
"slideshow": {
"slide_type": "fragment"
Expand Down Expand Up @@ -5000,7 +5000,7 @@
},
{
"cell_type": "markdown",
"id": "19a56bad",
"id": "05089695",
"metadata": {
"slideshow": {
"slide_type": "subslide"
Expand All @@ -5015,7 +5015,7 @@
{
"cell_type": "code",
"execution_count": 47,
"id": "fce8228d",
"id": "276148f7",
"metadata": {
"slideshow": {
"slide_type": "-"
Expand Down Expand Up @@ -5050,7 +5050,7 @@
},
{
"cell_type": "markdown",
"id": "f12716cd",
"id": "eb885def",
"metadata": {
"slideshow": {
"slide_type": "fragment"
Expand All @@ -5064,7 +5064,7 @@
},
{
"cell_type": "markdown",
"id": "03404bf9",
"id": "24b21638",
"metadata": {
"slideshow": {
"slide_type": "subslide"
Expand All @@ -5079,7 +5079,7 @@
{
"cell_type": "code",
"execution_count": 48,
"id": "2ed631e2",
"id": "932a33a5",
"metadata": {
"slideshow": {
"slide_type": "-"
Expand Down Expand Up @@ -5117,7 +5117,7 @@
},
{
"cell_type": "markdown",
"id": "0e34fb26",
"id": "46ef2021",
"metadata": {
"slideshow": {
"slide_type": "subslide"
Expand All @@ -5132,7 +5132,7 @@
{
"cell_type": "code",
"execution_count": 49,
"id": "6edf5214",
"id": "9bee43aa",
"metadata": {
"slideshow": {
"slide_type": "-"
Expand Down Expand Up @@ -5167,7 +5167,7 @@
},
{
"cell_type": "markdown",
"id": "73a90293",
"id": "93cc60ae",
"metadata": {
"slideshow": {
"slide_type": "subslide"
Expand All @@ -5180,7 +5180,7 @@
{
"cell_type": "code",
"execution_count": 50,
"id": "a064ca0a",
"id": "2e0f92c8",
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -5211,7 +5211,7 @@
},
{
"cell_type": "markdown",
"id": "654f3a5a",
"id": "2842b9eb",
"metadata": {
"slideshow": {
"slide_type": "subslide"
Expand All @@ -5224,7 +5224,7 @@
{
"cell_type": "code",
"execution_count": 51,
"id": "bf2dc1ef",
"id": "0418169f",
"metadata": {
"slideshow": {
"slide_type": "-"
Expand All @@ -5238,7 +5238,7 @@
{
"cell_type": "code",
"execution_count": 52,
"id": "83536858",
"id": "2662ab2a",
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -5365,6 +5365,16 @@
"df[ ['time_stamp', 'humidity_int', 'humidity' ] ]"
]
},
{
"cell_type": "markdown",
"id": "e738e3f1",
"metadata": {},
"source": [
"## Altri esercizi\n",
"\n",
"### [Vedere SoftPython](https://it.softpython.org/pandas/pandas1-intro-sol.html#7.-Altri-esercizi)"
]
},
{
"cell_type": "code",
"execution_count": 53,
Expand Down
Loading

0 comments on commit 41227c2

Please sign in to comment.