Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating js requires browser refresh #42

Closed
dlarendt opened this issue Dec 7, 2018 · 2 comments
Closed

Updating js requires browser refresh #42

dlarendt opened this issue Dec 7, 2018 · 2 comments

Comments

@dlarendt
Copy link

dlarendt commented Dec 7, 2018

I am following the instructions for working in the development environment. Everything seems to be linked correctly. However, if I make a change to example.js and npm run prepublish, this change is not visible in the jupyter notebook until I refresh the entire page. I would expect to see the updated widget when I re-run the cell containing the widget. Restarting the kernel also still shows the old version of the widget.

How do I get the updated js in the widget loaded into the browser without refreshing the page?

@vidartf
Copy link
Member

vidartf commented Dec 8, 2018

It is not possible out of the box, as the browser will not ask again for the JS every time it uses the code. There are some development tools that do allow the server to push "hot module reloads" through, so you could try looking into this. Not sure about the difficulty level of this one though.

@vidartf
Copy link
Member

vidartf commented Oct 15, 2019

Closing as answered, feel free to comment if anyone finds a good practical solution here.

@vidartf vidartf closed this as completed Oct 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants