Native Python access to IPFS in Jupyter Notebooks

Share: Share on FacebookTweet about this on TwitterShare on Google+Share on LinkedInShare on RedditEmail this to someonePrint this page

interplanetaryfile

 

In a previous post, we discussed using the new InterPlanetary File System (IPFS) protocol as a way to load data into Jupyter Notebooks. After experimenting with our previous example code for using IPFS, we decided that using IPFS would be more organic in a Notebook if you could use it from Python as a native library. The jStart team spent a few weeks contributing to the py-ipfs-api project, which creates Python language bindings for interfacing with a Node in the IPFS network. This means that values pulled from the IPFS network are now Python strings or dictionaries and can be used within more complex Python programs as variables.

The IBM jStart contribution to the py-ipfs-api included writing extensive documentation, tests, and extending the functionality of the library to more closely align with the ipfs specification for client libraries.

We’ve revamped our previous IPFS Notebook Example to use the new Python client instead of the old thin wrapper around the IPFS CLI, though we still need part of the old code to install an IPFS daemon on the notebook server. You can get a copy of it here.

Share: Share on FacebookTweet about this on TwitterShare on Google+Share on LinkedInShare on RedditEmail this to someonePrint this page
Christopher Waldon
Chris is a software developer with a special fondness for Golang programming, distributed systems, and command line utilities. He's currently a co-op with IBM jStart and is finishing his Master's in Computer Science at Appalachian State University.
Christopher Waldon

Latest posts by Christopher Waldon (see all)

Christopher Waldon
https://github.com/whereswaldon
Luke Stack
Luke joined IBM's jStart team as a co-op in January 2016 . Luke is a junior, pursuing Bachelor’s of Science degrees in both Computer Science and Mathematics at Appalachian State University.
Luke Stack
Luke Stack

Latest posts by Luke Stack (see all)

Ryan Soley
Ryan began working with the jStart team as a co-op in May 2016. He is currently a senior at Penn State University pursuing his Bachelor's degree in Computer Science.
Ryan Soley

Latest posts by Ryan Soley (see all)

Ryan Soley

Leave a Reply

Your email address will not be published. Required fields are marked *