# flags: python.reloadEngine
Does not work when you create a new method or a class in module. Only when you are editing existing method. Only reload engine toolbar button works.
Do you think it would be possible also to include in script editor a boolean toggle in the reload python engine?
In reality you most often are going through all the commands and scripts not just a single file.
Last week there was compas dev meeting, and I see this option would be useful to many more developers using ScriptEditor in rhino and also grasshopper. We most often work in VScode or other editors for main libraries (for the reasons of copilot, any other extensions or just being too comfortable with vscode), and when we want to integrate our code to rhino user interface we constantly work in both systems: vscode for the main library and rhino script editor. But not for a single file, most commonly for the whole one specific python library that is constantly being edited.
Okay I made this ticket to look into this and see if I can improve the reloading. It’s quite complicated how reloading works but I took some notes based on your input. If you can provide any sort of specific examples that would be great.
Infact even calling a method in class constructor does not reload, also importlib does not do anything neither. I think what is under reload button completely different thing than this soft reload.
I prepared completely empty python project for you to test.
Also I recorded video below.