DEV Community

Cover image for Getting started with Jupyter Notebooks
Nitin Reddy
Nitin Reddy

Posted on

1 1

Getting started with Jupyter Notebooks

I love to explore around some technology over the weekend.
This time around I tried out Jupyter Notebooks using Python VS Code extension.

So things you need:-

To start off with, I tried to make some make REST API calls using Jupyter nb in VS code so I picked up Github Rest Apis.

The file extension for Jupyter notebook is .ipynb

Since some of the Github Apis doesn't require to have authentication to access the data, I selected Github users API.

Steps to get the API response

  1. In the first cell, import the requests module inside the notebook
    Alt Text

  2. Declare the constants for endpoint
    Alt Text

  3. Make an API call using "requests" module
    Alt Text

  4. Get back the response and access it via response.text
    Alt Text

You can see how I did this in the below example:-

Alt Text

Hope you enjoyed this article. I will come up with new tech learning articles.

Thanks for reading this.

Happy learning!!

Hostinger image

Get n8n VPS hosting 3x cheaper than a cloud solution

Get fast, easy, secure n8n VPS hosting from $4.99/mo at Hostinger. Automate any workflow using a pre-installed n8n application and no-code customization.

Start now

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

Instrument, monitor, fix: a hands-on debugging session

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

Tune in to the full event

DEV is partnering to bring live events to the community. Join us or dismiss this billboard if you're not interested. ❤️