Skip to content

Instantly share code, notes, and snippets.

View Etrama's full-sized avatar
:octocat:
busy

Etrama Etrama

:octocat:
busy
View GitHub Profile
@Etrama
Etrama / jupyter_cell_output_render.css
Created June 30, 2024 04:16
Some CSS to use in Hugo Papermod to differentiate code blocks and code output blocks. This file needs to be placed in themes\papermod\assets\css\extended\jupyter_cell_output_render.css
/* Style for code blocks with language-python class */
pre > code.language-python.hljs {
display: block;
padding: 10px;
margin: 10px 0;
background-color: rgb(0, 0, 0) !important;
font-size: 14px;
line-height: 1.5;
/* Add the border style here */
border: 1px solid #ece4e4 !important; /* Adjust border style, width, and color */
@Etrama
Etrama / df_render.css
Created June 30, 2024 02:27
Some CSS to use in Hugo Papermod to help it render dataframes. Visually this will make it look like what happens when try to look at a df output in vscode. Note that this DOES NOT refer to the output we receive when we do print(df) but rather we write df in a cell and then we execute that cell to look at the output.
/* static/css/df_render.css */
body .dataframe,
body table.dataframe {
border-collapse: collapse !important;
width: 100%;
max-width: 100% !important;
margin-bottom: 1rem !important;
background-color: rgb(19, 20, 21) !important; /* Set background color using RGB */
overflow-x: auto !important;
display: block !important;