This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from glue import qglue | |
| from glue.core.data_factories import panda_process | |
| import pandas as pd | |
| df = pd.read_csv(...) | |
| data = panda_process(df) # convert to Glue data, detect categorical components | |
| qglue(data=data) #start ui | |
| #alternatively, from the GUI, choose file->open data set, and choose file type=Pandas table |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # IMPORTANT SETUP INSTRUCTIONS: | |
| # | |
| # 1. Go to http://www.dropbox.com/developers/apps (log in if necessary) | |
| # 2. Select "Create App" | |
| # 3. Select the following settings: | |
| # * "Dropbox API app" | |
| # * "Files and datastores" | |
| # * "(No) My app needs access to files already on Dropbox" | |
| # * "All file types" | |
| # * (Choose any app name) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # usage: nbgrep 'pattern' | |
| SEARCHPATH=~/work/ | |
| # 'jq' technique lifted with gratitude | |
| # from https://gist.github.com/mlgill/5c55253a3bc84a96addf | |
| # Break on newlines instead of any whitespace |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| """ A cross-platform (POSIX, at least) tool to list running IPython Notebooks | |
| and their working directories. | |
| This code will be incredibly simpler to write as of IPython 3.0, so | |
| contains numerous workarounds to make it work on 2.x. | |
| Thanks to @takluyver for the suggestions for improvement. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {"display_name":"Julia","argv":["/usr/bin/julia","-i","-F","/home/jupyter/.julia/v0.3/IJulia/src/kernel.jl","{connection_file}"],"language":"julia","codemirror_mode":"julia"} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| """ | |
| Starts a Tornado static file server in a given directory. | |
| To start the server in the current directory: | |
| tserv . | |
| Then go to http://localhost:8000 to browse the directory. | |
| Use the --prefix option to add a prefix to the served URL, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy) | |
| BSD License | |
| """ | |
| import numpy as np | |
| # data I/O | |
| data = open('input.txt', 'r').read() # should be simple plain text file | |
| chars = list(set(data)) | |
| data_size, vocab_size = len(data), len(chars) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Convert your notebook to an interactive webpage | |
| # | |
| # Attached a notebook (really-interactive-posts.ipynb) and the generated | |
| # output (really-interactive-posts.html). The thebe.tpl template file is | |
| # at the very end of the gist. | |
| $ jupyter nbconvert --template thebe.tpl --to html <notebook.ipynb> | |
| # You can open the generated webpage locally file://... howerver some |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| : ${NUM_FAILURES_ALLOWED:=10} | |
| : ${SLEEP_PING_TIME:=10} | |
| if [ "${1}" == "-c" -a -n "${2}" ]; then SHIMO_SCRIPT_CFG="${2}"; shift 2; fi | |
| if [ -n "${SHIMO_SCRIPT_CFG}" ]; then | |
| : ${SHIMO_HOME:="${HOME}/Library/Application Support/Shimo"} | |
| : ${SHIMO_SCRIPT_HOME:="${SHIMO_HOME}/Scripts"} | |
| : ${SHIMO_CONFIG_DIR:="${SHIMO_SCRIPT_HOME}/${SHIMO_SCRIPT_CFG}"} |