Skip to content

Instantly share code, notes, and snippets.

@juhasch
juhasch / exception.diff
Created July 7, 2014 20:39
Diff file for run all, ignore exception
diff --git a/IPython/html/static/notebook/js/codecell.js b/IPython/html/static/notebook/js/codecell.js
index 44d4c79..bae3011 100644
--- a/IPython/html/static/notebook/js/codecell.js
+++ b/IPython/html/static/notebook/js/codecell.js
@@ -259,9 +259,13 @@ var IPython = (function (IPython) {
* Execute current code cell to the kernel
* @method execute
*/
- CodeCell.prototype.execute = function () {
+ CodeCell.prototype.execute = function (skip_exceptions) {
@juhasch
juhasch / usrp_echotimer_cw.grc
Created July 27, 2014 19:29
gr-radar example with B210
<?xml version='1.0' encoding='ASCII'?>
<flow_graph>
<timestamp>Sat Jul 26 16:09:06 2014</timestamp>
<block>
<key>options</key>
<param>
<key>id</key>
<value>top_block</value>
</param>
<param>
@juhasch
juhasch / bld.bat
Created October 14, 2014 17:31
Conda recipe for scikit-rf
"%PYTHON%" setup.py build --compiler=mingw32
"%PYTHON%" setup.py install
if errorlevel 1 exit 1
:: Add more build steps here, if they are necessary.
:: See
:: http://docs.continuum.io/conda/build.html
:: for a list of environment variables that are set during the build process.
@juhasch
juhasch / python-markdown.js
Created November 3, 2014 21:54
IPython notebook extension with some debugging output
// Allow Python-code in markdown cells
// Encapsulate using {{...}}
// - You can also return html or markdown from your Python code
// - You can embed images, however they will be sanitized on reload.
"use strict";
var pymd_extension = (function() {
"use strict";
var security = IPython.security;
var _on_reload = true; /* make sure cells with variables render on reload */
@juhasch
juhasch / Untitled2.ipynb
Created December 27, 2014 09:13
Defective Notebook
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@juhasch
juhasch / gist:ea56dc964638933aa6a9
Created February 23, 2015 18:02
Add rulers to codecells
// Add rulers to a codecell
//
define([
'base/js/namespace',
'jquery',
'require',
'base/js/events',
'codemirror/lib/codemirror',
'codemirror/addon/display/rulers'
@juhasch
juhasch / mylatex.tplx
Last active June 26, 2017 16:36
Template for generating PDF output from nbconvert (via latex)
((= IPython input/output style =))
((*- extends 'base.tplx' -*))
%===============================================================================
% Custom definitions
%===============================================================================
((* block definitions *))
((( super() )))
@juhasch
juhasch / demonotebook.ipynb
Created April 29, 2016 18:00
Notebook for toc2 testing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@juhasch
juhasch / nbextensions_contrib_json_config.py
Created January 28, 2018 18:25
Check integrity of JSON config files and remove entries for loading contrib extensions
"""Cleanup nbconfig files from notebook extension configurations
Gets list of notebook extensions from jupyter_contrib_nbextensions and removes the 'require' entry for
each found extension from the 'load_extensions' dict entry.
"""
import sys
import glob
import os
@juhasch
juhasch / mypyc.ipynb
Last active August 27, 2023 08:13
Mypy compilation example
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.