Forum Archive

Problem loading html with webbrowser

louis1100

I just discovered that pythonista has this cool syntax highlighting for JavaScript and HTML. So it’s by far better than any editor for html that I was using.

I was trying to make it work with p5.js, and it did. Render everything pretty nicely.

But then, trying to make some changes to the file I reloaded and... they don’t show up.

My first thought was that it was some kind of cache of the browser.
When I changed the name of the file it updated.

So I wrote, inside the script that opens the html, some code to make a temporary file and open that. Then I added a separated txt to store a number, cause the temporary file was not updating either.
At the end the temp file is called something like “index-temp5.html”.

But it doesn’t update that neither.
I have no idea of what could be happening.

Making some tests now I realize that it might be just the js that is not getting updated.

Any help would be appreciated.

mikael

@louis1100, does anything in this thread help?

louis1100

Totally. Thank you, so much.

I couldn’t find anything on the topic by myself.

mikael

Google usually works much better than the forum search.