Skip to content

Instantly share code, notes, and snippets.

View krassowski's full-sized avatar

Michał Krassowski krassowski

View GitHub Profile
@krassowski
krassowski / Python_3.11.ipynb
Last active September 8, 2022 17:58
IPython performance: forward unicode completions
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@krassowski
krassowski / rpy2-complex-heatmap-repro.ipynb
Created July 23, 2022 22:10
rpy2-complex-heatmap-repro
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@krassowski
krassowski / example_font_awesome.R
Created March 17, 2022 18:06
ggplot geom_font_awesome
library(ggplot2)
source('geom_font_awesome.R')
shapes_map = c(
setosa = 'car',
virginica = 'ban',
versicolor = 'star'
)
(
@krassowski
krassowski / ggtext_labels_fontawesome.R
Last active March 17, 2022 16:43
ggtext labels fontawesome
library(ggtext)
library(ggplot2)
library(fontawesome)
fa_html = function(icon) {
fa_png(icon)
paste0("<img src='", icon, ".png' width='20'>")
}
icons_map = c(
@krassowski
krassowski / README.md
Last active December 17, 2021 20:00
# JupyterLab 3.2.3

JupyterLab 3.2.3

Binder

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

JupyterLab 3.2 on Binder with some extra libraries

Binder

@krassowski
krassowski / export_to_spreadsheet.py
Created October 15, 2021 16:04
Export tables to spreadsheet
from pandas import DataFrame, ExcelWriter, Series
# assuming you have tables:
participants_sumnary = DataFrame()
measured_things = DataFrame()
correlation_results = DataFrame()
model_results = DataFrame()
@krassowski
krassowski / README.md
Created September 25, 2021 15:53
Language packs JupyterLab 3.1.13 and server 2.8.2

JupyterLab 3.1.13 on Binder with language packs (working)

Binder

@krassowski
krassowski / README.md
Last active September 25, 2021 15:53
Language packs JupyterLab 3.1.13 and server 2.8.1

JupyterLab 3.1.13 on Binder with language packs (broken)

Binder