From 893ed47f52a1190f54e8504a4c924d55af06c425 Mon Sep 17 00:00:00 2001 From: Uwe Schmitt <uwe.schmitt@id.ethz.ch> Date: Wed, 17 Apr 2019 16:33:03 +0200 Subject: [PATCH] simplified custom.css handling in script 06 --- ...ines_and_hyperparameter_optimization.ipynb | 136 ++++++++++++++++++ 1 file changed, 136 insertions(+) diff --git a/06_preprocessing_pipelines_and_hyperparameter_optimization.ipynb b/06_preprocessing_pipelines_and_hyperparameter_optimization.ipynb index 15835d0..51c3298 100644 --- a/06_preprocessing_pipelines_and_hyperparameter_optimization.ipynb +++ b/06_preprocessing_pipelines_and_hyperparameter_optimization.ipynb @@ -1,5 +1,123 @@ { "cells": [ + { + "cell_type": "code", + "execution_count": 2, + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "<style>\n", + " \n", + " @import url('http://fonts.googleapis.com/css?family=Source+Code+Pro');\n", + " \n", + " @import url('http://fonts.googleapis.com/css?family=Kameron');\n", + " @import url('http://fonts.googleapis.com/css?family=Crimson+Text');\n", + " \n", + " @import url('http://fonts.googleapis.com/css?family=Lato');\n", + " @import url('http://fonts.googleapis.com/css?family=Source+Sans+Pro');\n", + " \n", + " @import url('http://fonts.googleapis.com/css?family=Lora'); \n", + "\n", + " \n", + " body {\n", + " font-family: 'Lora', Consolas, sans-serif;\n", + " \n", + " -webkit-print-color-adjust: exact important !;\n", + " \n", + " \n", + " \n", + " }\n", + " \n", + " .alert-block {\n", + " width: 95%;\n", + " margin: auto;\n", + " }\n", + " \n", + " .rendered_html code\n", + " {\n", + " color: black;\n", + " background: #eaf0ff;\n", + " background: #f5f5f5; \n", + " padding: 1pt;\n", + " font-family: 'Source Code Pro', Consolas, monocco, monospace;\n", + " }\n", + " \n", + " p {\n", + " line-height: 140%;\n", + " }\n", + " \n", + " strong code {\n", + " background: red;\n", + " }\n", + " \n", + " .rendered_html strong code\n", + " {\n", + " background: #f5f5f5;\n", + " }\n", + " \n", + " .CodeMirror pre {\n", + " font-family: 'Source Code Pro', monocco, Consolas, monocco, monospace;\n", + " }\n", + " \n", + " .cm-s-ipython span.cm-keyword {\n", + " font-weight: normal;\n", + " }\n", + " \n", + " strong {\n", + " background: #f5f5f5;\n", + " margin-top: 4pt;\n", + " margin-bottom: 4pt;\n", + " padding: 2pt;\n", + " border: 0.5px solid #a0a0a0;\n", + " font-weight: bold;\n", + " color: darkred;\n", + " }\n", + " \n", + " \n", + " div #notebook {\n", + " # font-size: 10pt; \n", + " line-height: 145%;\n", + " }\n", + " \n", + " li {\n", + " line-height: 145%;\n", + " }\n", + "\n", + " div.output_area pre {\n", + " background: #fff9d8 !important;\n", + " padding: 5pt;\n", + " \n", + " -webkit-print-color-adjust: exact; \n", + " \n", + " }\n", + " \n", + " \n", + " \n", + " h1, h2, h3, h4 {\n", + " font-family: Kameron, arial;\n", + "\n", + "\n", + " }\n", + " \n", + " div#maintoolbar {display: none !important;}\n", + "</style>\n" + ], + "text/plain": [ + "<IPython.core.display.HTML object>" + ] + }, + "execution_count": 2, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "# IGNORE THIS LINE WHICH MODIFIES LAYOUT AND STYLING OF THE NOTEBOOK !\n", + "from IPython.core.display import HTML; HTML(open(\"custom.html\", \"r\").read())" + ] + }, { "cell_type": "markdown", "metadata": {}, @@ -697,6 +815,24 @@ "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.7.2" + }, + "latex_envs": { + "LaTeX_envs_menu_present": true, + "autoclose": false, + "autocomplete": true, + "bibliofile": "biblio.bib", + "cite_by": "apalike", + "current_citInitial": 1, + "eqLabelWithNumbers": true, + "eqNumInitial": 1, + "hotkeys": { + "equation": "Ctrl-E", + "itemize": "Ctrl-I" + }, + "labels_anchors": false, + "latex_user_defs": false, + "report_style_numbering": false, + "user_envs_cfg": false } }, "nbformat": 4, -- GitLab