Skip to content

Instantly share code, notes, and snippets.

View draperjames's full-sized avatar

James Draper draperjames

View GitHub Profile
@fperez
fperez / NewCodeCellWidget.ipynb
Created January 29, 2016 04:21
Automatic creation of new code cells via widgets.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@DrDub
DrDub / selectfile.py
Created January 3, 2016 11:44
A file selection class build for ipywidgets without any extra dependencies.
import os
import ipywidgets as widgets
class FileBrowser(object):
def __init__(self):
self.path = os.getcwd()
self._update_files()
@tgarc
tgarc / example_usage
Last active March 25, 2022 13:44
Jekyll IPython notebook converter
ipython nbconvert --to markdown <notebook>.ipynb --config jekyll.py
@jsexauer
jsexauer / DataFrameGUI.py
Last active March 28, 2023 21:07
A sophisticated GUI to interact with DataFrame objects
"""
DataFrameTable
==============
Quick and Dirty Qt app to view pandas DataFrames. Includes sorting and
filterting.
Based on qtpandas in pandas sandbox module, by Jev Kuznetsov
Usage:
@ericelliott
ericelliott / essential-javascript-links.md
Last active May 17, 2024 03:38
Essential JavaScript Links

A General Guide to Upgrading Mint Linux

Last Updated for Mint 18

Pre-Install

  1. Backup application list
    • Menu -> Backup Tool
    • Backup software selection
    • USER/Desktop, Select All, Apply
  2. Create a new LVM partition for root
  • lvdisplay
@fperez
fperez / nblinkcheck
Created September 22, 2014 06:02
Check links in an IPython notebook. For images, try to copy missing ones from a globally-configured store.
#!/usr/bin/env python
"""Check all figure links in an IPython notebook and try to copy missing ones.
Note: this quick script is adapted to a fairly specific pattern of
mine. You should simply use it as a template and starting point for
your own functionality.
I keep a single large directory full of figures I reuse on all my
talks, and I normally just symlink it from a new talk directory. But
this makes it harder to publish the talk sources in a self-contained
@jdarling
jdarling / index.html
Last active November 16, 2022 14:13
Reuseable D3 MindMap (left/right tree)
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<script type="text/javascript" src="http://d3js.org/d3.v3.min.js"></script>
<style type="text/css">
.node circle {
cursor: pointer;
fill: #fff;
stroke: steelblue;
@fperez
fperez / ProgrammaticNotebook.ipynb
Last active May 2, 2024 19:14
Creating an IPython Notebook programatically
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sloria
sloria / bobp-python.md
Last active June 26, 2024 15:54
A "Best of the Best Practices" (BOBP) guide to developing in Python.

The Best of the Best Practices (BOBP) Guide for Python

A "Best of the Best Practices" (BOBP) guide to developing in Python.

In General

Values

  • "Build tools for others that you want to be built for you." - Kenneth Reitz
  • "Simplicity is alway better than functionality." - Pieter Hintjens