Skip to content

Instantly share code, notes, and snippets.

View fomightez's full-sized avatar

Wayne's Bioinformatics Code Portal fomightez

View GitHub Profile
@fomightez
fomightez / README.md
Last active September 6, 2024 15:40 — forked from jtpio/README.md
JupyterLab 4.3 on Binder

JupyterLab 4.3 with Python 3.11 on Binder

Binder

@fomightez
fomightez / README.md
Last active August 8, 2023 15:40 — forked from jtpio/README.md
JupyterLab 4, Notebook 7 and NBClassic on Binder

JupyterLab 4 + Notebook 7 + NBClassic on Binder

Jupyter Notebook Logo

@fomightez
fomightez / README.md
Last active April 5, 2022 15:57 — forked from jtpio/README.md
JupyterLab 3.3.2
@fomightez
fomightez / README.md
Last active December 8, 2021 17:50 — forked from jtpio/README.md
RetroLab with RTC Looking Classic on Binder

RetroLab with RTC Looking Classic on Binder

Try it on Binder!

Binder

RetroLab 0.3.13 featuring RTC with RetroLogo hidden to look more like the classic notebook, served on Binder

Based on RetroLab 0.3.2 on Binder where RTC works with RetroLab and then combined that with taking advantage of ability to hide the Retro_Logo use the Jupyter Logo to get something closer to the classic notebook where Real Time Colloaboration works. Idea is from here. Updated from version 0.3.2 to 0.3.13 (see releases here).

@fomightez
fomightez / diff_strings.py
Last active September 12, 2019 20:55 — forked from ines/diff_strings.py
Print colored visual diff in Python - from Ines Montani https://twitter.com/_inesmontani/status/1156904128666316800
import difflib
from wasabi import color
def diff_strings(a, b):
output = []
matcher = difflib.SequenceMatcher(None, a, b)
for opcode, a0, a1, b0, b1 in matcher.get_opcodes():
if opcode == "equal":
output.append(a[a0:a1])
elif opcode == "insert":
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@fomightez
fomightez / legend_circles.py
Created February 13, 2018 17:33 — forked from evanmiltenburg/legend_circles.py
Circles in legend
import matplotlib.pyplot as plt
import seaborn as sns
from matplotlib.lines import Line2D
my_palette = sns.color_palette("cubehelix", 3)
sns.set_palette(my_palette)
def legend_circles(labels, palette, loc=1, markersize=10, marker='o', padding=0):
"Make a legend where the color is indicated by a circle."
@fomightez
fomightez / useful_pandas_snippets.py
Last active September 26, 2024 18:27 — forked from bsweger/useful_pandas_snippets.md
Useful Pandas Snippets
# List unique values in a DataFrame column
df['Column Name'].unique()
# To extract a specific column (subset the dataframe), you can use [ ] (brackets) or attribute notation.
df.height
df['height']
# are same thing!!! (from http://www.stephaniehicks.com/learnPython/pages/pandas.html
# -or-
# http://www.datacarpentry.org/python-ecology-lesson/02-index-slice-subset/)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.