Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (21 sloc) 646 Bytes
layout title comments permalink tags categories
post
Converting Python files to notebooks
true
python-file-to-notebooks
python
notebooks
python

Python Notebooks?

I commonly get requests from end users to convert quantitative models into Python Notebooks for others to perform testing on. This become tedious so here is a brief script to perform the operation:

{% gist 7af8084a3065f321368c49717901373e %}

This script relies on the nbformat library. You can install this with the following command in your terminal (pip required):

pip install nbformat