Untitled2



In [2]:
import json

In [2]:
ls


CVS Importer.ipynb  grafana-1.5.4.tar.gz  influxdb_latest_amd64.deb  SBL Importer2.ipynb            SolarProductionProducer.ipynb.bak  Untitled1.ipynb
CVS parser.ipynb    ImportMetaData.ipynb  influx.json                SBL test.ipynb                 tmp/                               Untitled2.ipynb
downloads/          influx2.json          influx.json.save           SiteIDs.json                   Universe.ipynb
git/                influxDB.ipynb        MQTT-Stage/                SolarProductionProducer.ipynb  Untitled0.ipynb

In [3]:
f = open("SolarProductionProducer.ipynb","r")

In [31]:
f2 = open("SolarProductionProducer.ipynb","w")
json.dump(data,f2)

In [25]:
data[u'worksheets'][0][u'cells'][9][u'outputs']= []

In [8]:
data.keys()


Out[8]:
[u'nbformat', u'nbformat_minor', u'worksheets', u'metadata']

In [30]:
data[u'worksheets'][0][u'cells'][9][u'outputs']


Out[30]:
[]

In [ ]: