Solved

Can the online editor install packages like requests?

HenryWritesOP edited

I'd like to try fetching an API in the editor here.

9

Comments 4

Join the discussion

Already have an account? Log in

  1. EmmaCodes Solutionreplies: 1

    The editor runs Python in your browser, so it can't install arbitrary packages the way pip does on your computer. Some scientific packages (numpy, matplotlib, pandas) are available, and the editor loads them when you import them.

    For network stuff like requests, browsers block a lot of it anyway. Easier to try that locally.

    2
    1. OliviaPy

      Tried matplotlib, the chart appears right in the output. Very handy for quick plots.

      4
      1. BellaRossi

        For anything with files, threads or the network, I switch to a local setup. For learning basics, the online editor is perfect.

        6