Importing library confusion

import codecademylib3_seaborn

import matplotlib.pyplot as plt

from data import bs, bs_000000001, bs_01

iterations = range(1400)

num_iterations = 800

convergence_b = 48

plt.plot(iterations, bs)


plt.ylabel(“b value”)

I want to to know what is this line work for “from data import bs, bs_000000001, bs_01”

Do you have a link to the lesson? I’d assume it’s importing those objects (bs etc.) from a local module (or something along those lines) produced by codecademy.

BTW you can format code on the forums if you follow the guide here-

1 Like

here is the link. actually I was trying the code on jupyter notebook but getting error for importing this library “from data import bs, bs_000000001, bs_01”. can you explain, can i use it in local machine like Jupiter or else? if yes then how?

It’d be a bit of a hassle since you’d have to copy over that data to your own system so it’s up to you whether you think it’s worthwhile just for this lesson.

actually which data you are talking about? “from data import bs, bs_000000001, bs_01” is this a library or just built in your platform? in the platform “bs” is just learning rate but where it is come from, I have no idea :frowning:

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.