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
import io | |
import os | |
import re | |
from nbconvert.exporters.script import ScriptExporter | |
from notebook.utils import to_api_path | |
def script_post_save(model, os_path, contents_manager, **kwargs): | |
"""Save a copy of notebook to the corresponding language source script. |
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 | |
import argparse | |
import chainer | |
import chainer.functions as F | |
import chainer.links as L | |
from chainer import training | |
from chainer.training import extensions | |
from chainer.datasets import TransformDataset | |
import matplotlib |