This file contains 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
'''Specialized Preprocessors''' | |
import nbconvert, nbformat, re, sys | |
from nbconvert.preprocessors import ExecutePreprocessor, Preprocessor | |
from traitlets import Dict, Unicode | |
from textwrap import dedent | |
from warnings import warn | |
def warn_deprecated(msg): | |
'''Raise a DeprecationWarning''' |
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.
This file contains 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
{ | |
"cells": [ | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"# The ModuleMagic cell magic\n", | |
"Gordon Bean, April 2015" | |
] | |
}, |
This file contains 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
% Consider the scenario where you want to declare | |
% an anonymous function to do some task, but it | |
% requires multiple uses of a result that is | |
% expensive to compute. | |
% For example, consider the following series of statements: | |
a = rand(1000); | |
b = rand(1000); | |
c = a * b; | |
[a./c b./c] |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.