Skip to main content

How do I reset the Python code in Code Builder

Comments

5 comments

  • Bryan Sanders
    Bug Zapper Beacon of Knowledge Super Star Moderator

    I believe that the cleanest way to do this is to have a new world for every class.

    0
  • Pucheng Mao

    hi, Sean Murphy:

    One solution is this: 

    1. Login https://minecraft.makecode.com/ with same account

    2. click reset button (at top right).

    3. click reset at pop window

    0
  • Bryan Sanders
    Bug Zapper Beacon of Knowledge Super Star Moderator

    Be careful with that RESET button -- you would clear all of your stored projects. That is not a good solution at all.

    0
  • Pucheng Mao

    Bryan Sanders

    yes. you are right. It's a dangerous operation.

    However, Sean Murphy appears to be using a public student account, which may not be a big problem. :-)

     

    0
  • Debbie Alexander
    Moderator Beacon of Knowledge Super Star

    Sean Murphy

    What you are trying to do is use Python in the Azure Notebooks window, yes? That is what you mean by the second option after you type c? Then you teach one class, but your code is still in the window when you return? You can use the "reset code" button at the bottom of the screen and then reinsert your initial code for the beginning of the next class. Or just add a say command. Or you can use the complete reset at the top right where the three bars are and go back to the three choises (makecode, notbooks or tynker) and that should give you a blank slate again. You do not need a new world. I will admit that Notebooks is quirky about wat will show up in your window from run to run. It is probably best to run something as a startup like your intro code or a say command if you want to be sure you have a blank slate. And yipeee!!!!!! (cartwheels!) for people using Notebooks. We need to start a club!

    0

Please sign in to leave a comment.