I'm looking for a way to see live changes in my code while I edit it. Specifically, is there a way to do this in Visual Studio Code? I want to actively view my updates as I make changes to my code. I'm coding in Python on Windows and using tkinter for my GUI. Any tips would be greatly appreciated!
3 Answers
For Python, especially using tkinter, the live update scenario is a bit tricky since tkinter applications typically need to restart to reflect changes. However, you can try running your main file in an integrated terminal; just make sure to rerun the script each time you edit the UI components. Alternatively, look into other frameworks that support hot reload for more interactive experiences.
If your app has a REPL (Read-Eval-Print Loop), that's a great way to see changes in real-time. You might not get the same experience as with web frameworks, but some libraries may allow for partial reloading or refreshing components.
You can achieve this if you're working on a web application with tools like Webpack or Vite. These tools allow for live updates in the browser whenever you save your changes, so you can see the results immediately. Just keep your code file open in the browser with a localhost server running.
Is this just for JavaScript? I'm using Python with tkinter, so will it work the same?
Thanks! I'll look into that.