Skip to content

Instantly share code, notes, and snippets.

View pllim's full-sized avatar
💭
Clickety clack clack. ⌨

P. L. Lim pllim

💭
Clickety clack clack. ⌨
View GitHub Profile
import matplotlib.pyplot as plt
import numpy as np
import re
from collections import defaultdict
# flake8 --select=E501 astropy/ > pep8length.txt
with open('pep8length.txt') as f:
text = f.read()
matches = re.findall(r'astropy/(.*?)/.*.py:.*(\d\d) > 79 characters', text)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bmorris3
bmorris3 / find_available_voila_templates.py
Last active October 14, 2022 13:20
Voila template help for @rosteen, related issue: spacetelescope/jdaviz#1729
import sys
import os
from glob import glob
prefix_targets = [
"nbconvert/templates",
"voila/templates",
]
def user_dir():