Skip to content

Instantly share code, notes, and snippets.

View jdfreder's full-sized avatar

Jonathan Frederic jdfreder

View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jdfreder
jdfreder / wslog.js
Last active May 20, 2016 22:13
Log websocket messages
// Dump this into your web console in a live notebook
function safeLog(type) {
try {
console.log.apply(console, arguments);
} catch(err) {
console.warn(type, 'could not print data');
}
}
var orig1 = Jupyter.notebook.kernel.ws.onmessage;
Jupyter.notebook.kernel.ws.onmessage = function() {

This is the configuration of my Atom editor

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jdfreder
jdfreder / gist:7d5c8a445eaaa49b7aeb
Created January 28, 2016 21:30
what a comm looks like
Object.defineProperty(Comm.prototype, 'comm_id',
Object.defineProperty(Comm.prototype, 'target_name',
Comm.prototype.open = function (data, callbacks, metadata)
Comm.prototype.send = function (data, callbacks, metadata, buffers)
Comm.prototype.close = function (data, callbacks, metadata)
Comm.prototype.on_msg = function (callback)
Comm.prototype.on_close = function (callback)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jdfreder
jdfreder / test.ipynb
Created January 20, 2016 21:24
Widget to screenshot 1
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.