Skip to content

Instantly share code, notes, and snippets.

View gnestor's full-sized avatar

Grant Nestor gnestor

View GitHub Profile
@gnestor
gnestor / requirements.txt
Last active March 17, 2020 11:41
Demo of tangle-like UI in Jupyter notebook
vdom
@gnestor
gnestor / jupyter-labextension-version.md
Last active July 2, 2019 17:36
How to pin a library to a specific version of a JupyterLab extension

Overview

The best practice for pinning a Python library (or any kernel-side library) to a specific JupyterLab extension is to use a versioned MIME type or media type. A good example of this is the Altair Python library which supports multiple versions of Vega and Vega-lite and vega4-extension, vega3-extension, and vega2-extension which render Altair output.

MIME types

In Jupyter notebooks, cell output areas contain one or more outputs of a given MIME type. The MIME type describes the data type of the output. The default MIME type is text/plain. JupyterLab provides a set of mimerender extensions that render common MIME types such as text/plain or application/json. There are many third-part

@gnestor
gnestor / cloudSettings
Last active July 16, 2020 07:01
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-07-16T06:53:05.772Z","extensionVersion":"v3.4.3"}
@gnestor
gnestor / github-py.ipynb
Last active February 9, 2022 00:25
A notebook for generating a Jupyter Notebook release changelog and credits
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Keybase proof

I hereby claim:

  • I am gnestor on github.
  • I am senornestor (https://keybase.io/senornestor) on keybase.
  • I have a public key ASAIOpv0jj6kqyQ-7xezUwnwiSKbSk-ypzL-VVUgfzyrbQo

To claim this, I am signing this object:

@gnestor
gnestor / index.js
Last active August 14, 2017 07:02
requirebin sketch
// Welcome! require() some modules from npm (like you were using browserify)
// and then hit Run Code to run your code on the right side.
// Modules get downloaded from browserify-cdn and bundled in your browser.
const embed = require('vega-embed');
const data = {
"width": 400,
"height": 200,
"padding": 5,
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@gnestor
gnestor / custom.rb
Created February 21, 2015 03:39
RubyMotion: Custom rake tasks for New Relic, Testflight (old), and Crittercism
def build_path
"build/iPhoneOS-7.0-Release/"
end
def ipa_name
"APP_FILE_NAME.ipa"
end
def dsym_name
"APP_FILE_NAME.app.dSYM"