current position:Home>How can jupyter notebook run on the next line of code followed by the above code

How can jupyter notebook run on the next line of code followed by the above code

2022-02-03 00:28:24 CSDN Q & A

img


The teachers in class are jupyter You don't need to type all the code again if you open a new column in the , They just type in the new code , Every time I open a new column, I copy the previous code , If I just type new code like a teacher, I can't run




Refer to the answer 1:

Just run the above code and get the result ,
Look at every one on it In There will be one out, Because every line of code above has been run , The variables above can only be used in the new line below




Refer to the answer 2:

copyright notice
author[CSDN Q & A],Please bring the original link to reprint, thank you.
https://en.primo.wiki/2022/02/202202030028227398.html

Random recommended