Skip to content

Instantly share code, notes, and snippets.

View hgustafsson's full-sized avatar

Henrik Gustafsson hgustafsson

View GitHub Profile
@bollwyvl
bollwyvl / nbconvert-in-jupyterlite.ipynb
Last active December 9, 2025 16:41
nbconvert in jupyterlite
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tevino
tevino / fix_virtualenv
Last active December 28, 2024 15:11
Fix python virtualenv after python update
#!/usr/bin/env bash
ENV_PATH="$(dirname "$(dirname "$(which pip)")")"
SYSTEM_VIRTUALENV="$(which -a virtualenv|tail -1)"
BAD_ENV_PATHS="/usr/local"
echo "Ensure the root of the broken virtualenv:"
echo " $ENV_PATH"
@jeromerobert
jeromerobert / pandoc-svg.py
Last active November 25, 2025 04:14
Pandoc filter to create PDF files from SVG
#! /usr/bin/env python
"""
Pandoc filter to convert svg files to pdf as suggested at:
https://github.com/jgm/pandoc/issues/265#issuecomment-27317316
"""
__author__ = "Jerome Robert"
import mimetypes
import subprocess