Widget Button doesn't Display

It is a very strict hard refresh that needs to be done. Not just a refresh. Assuming though you meant hard refresh…

Did you run this code fresh in the morning? The kernel has to be active and have everything in-memory. Before morning, did you try restarting the kernel and running the code. It is a good habit to adapt to restart the kernel and run all your code top to bottom regularly so the ‘hidden state’ doesn’t trip you up later. Also, sometimes just restarting the browser and computer is a good idea. Or try with another browser as I already suggested.

Beyond those suggestions…
A couple of things:

You should no longer be using an exclamation with pip install. I have pointed this out to you before, see here. The magic version of %pip install was added in 2019 to help avoid problems. Indeed, this may be causing you the issue you see. No guarantee though, yet the symptoms you describe are one of the reasons why the magic for this was added in 2019.

It seems widgets is making a button so it seems there is ‘connectivity’ of some sort, if that is what you mean…
This example in the last post is incomplete and so it makes it hard to help you in regard to this question. There are plenty of ways to share full code examples using GitHub gists or other code sharing resources. Or at least posting code as text here using code blocks with syntax highlighting, see the last two sentences here for more help on that.

Please read Getting good answers to your questions and play special attention to the fact screenshots of code are frowned on and minimal reproducible examples are strongly encouraged in the section ’ Help others reproduce the problem’ in the last resource listed there, How do I ask a good question?.

Example:

You can go here scroll to the bottom and choose what type of interface experience you want: JupyterLab or Jupyter Notebook by clicking on the appropriate launch button.

Then when that remote session starts up you can copy in the code cells from here and run them in turn to see them work. (Code actually hosted in this gist.) They are using ipywidgets.