title: Convert raw Ipython Notebook txt to Ipynb
body: <p>I have a textfile containing the source code for an Ipython Notebook.</p>
  
  <p>How can I convert this file using Ipython / Python to an Ipython Notebook?</p>
  
  <p>e.g. :</p>
  
  <p>source.txt:</p>
  
  <pre><code>{
   "cells": [
    {
     "cell_type": "markdown",
     "metadata": {},
     "source": [
      "Test"
     ]
    },
  }
  ...
  </code></pre>
  
  <p>The questions on SE deal with converting an actual notebook to a .py or otherwise. I'm looking just to get to the notebook in the first place.</p>
  
  <p>Edit:
  I'm on Mac </p>