paint-brush
A short trip to Jupyter via the Inter-planetary File Systemby@carsonfarmer
2,285 reads
2,285 reads

A short trip to Jupyter via the Inter-planetary File System

by Carson FarmerJune 6th, 2018
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Getting started with IPFS, Python, and Jupyter Notebooks
featured image - A short trip to Jupyter via the Inter-planetary File System
Carson Farmer HackerNoon profile picture

Getting started with IPFS, Python, and Jupyter Notebooks

And because we’re working in Python, we can take advantage of some of the nice features these bindings afford us, such as helpers functions for adding strings and dicts directly to IPFS:




metadata = {"data": "about data"}cid = api.add_json(metadata)# You can also check the public gateway:print("https://ipfs.io/ipfs/{}".format(cid))

and then check that our data is actually available via our local peer:


import jsonjson.loads(api.cat(cid))

And that’s it for now! At Textile, we use a whole range of IPFS tools to interact with our own data, as well as the growing infrastructure we’re developing to enable secure photo backup and sharing on the distributed web. Come check us out, and jump on the Textile Photos waitlist to request early access to a whole new way to control your photos.

Resources