Skip to content

Instantly share code, notes, and snippets.

View nbstripout
#!/usr/bin/env python
"""strip outputs from an IPython Notebook
Opens a notebook, strips its output, and writes the outputless version to the original file.
Useful mainly as a git pre-commit hook for users who don't want to track output in VCS.
This does mostly the same thing as the `Clear All Output` command in the notebook UI.
View trendsjournals.csl
<?xml version="1.0" encoding="utf-8"?>
<style xmlns="" class="in-text" version="1.0" demote-non-dropping-particle="sort-only">
<title>Trends Journals</title>
<link href="" rel="self"/>
<name>Adam Zeilinger</name>
You can’t perform that action at this time.