Skip to content

Instantly share code, notes, and snippets.

View psychemedia's full-sized avatar

Tony Hirst psychemedia

View GitHub Profile
@psychemedia
psychemedia / print_pack.py
Created September 1, 2022 11:20
Generate PDF and epub version of jupyter notebook collections
# # `print_publication.py`
#
# Script for generating print items (weekly PDF, weekly epub).
# # Install requirements
#
# - Python
# - pandoc
# - python packages:
# - ipython
@psychemedia
psychemedia / archive-bibtex.ipynb
Created August 8, 2022 15:31
Attempt to generate BibTeX file for publications on archive.org
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@psychemedia
psychemedia / pandas-test.ipynb
Last active June 22, 2022 08:48
Test read/write for pandas dataframes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@psychemedia
psychemedia / spritz_mobile_data.ipynb
Last active June 7, 2022 08:43
Example of parsing Mark Spritz mobile phone data
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@psychemedia
psychemedia / tags2class.ts
Last active April 8, 2022 09:31
Jupyterlab-empinken early sketches
// Most of the code cribbed from @krassowski
// https://stackoverflow.com/questions/71736749/accessing-notebook-cell-metadata-and-html-class-attributes-in-jupyterlab-extensi/71744107?noredirect=1#comment126807644_71744107
// Testing this in:
// https://github.com/jupyterlab/jupyterlab-plugin-playground
import { IDisposable, DisposableDelegate } from '@lumino/disposable';
import {
@psychemedia
psychemedia / islle-of-wight-books.md
Created January 8, 2022 14:55
Isle of Wight - Historical books
@psychemedia
psychemedia / lang-fairy-books-db.ipynb
Last active November 17, 2021 18:43
Scrape and build a simple full text searchable database over Lang's Fairy Books
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@psychemedia
psychemedia / jupyter local book hack.ipynb
Created August 17, 2021 12:56
Hack for local Jupyter book
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@psychemedia
psychemedia / table2tree.ipynb
Last active October 22, 2024 17:41
Convert a pandas dataframe describing a hierarchy to a JSON tree
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.