Python Forum
"Widget Javascript not detected" error
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
"Widget Javascript not detected" error
#1
I have a Python script that I'm attempting to run; it includes the use of a widget. The relevant code is:

from my_widget import *

# {code to generate "results" data}

net = Network(my_widget)
net.load_df(results)
net.widget()
However, the final line is causing a problem, returning the error message:

Error:
net.widget() Widget Javascript not detected. It may not be installed or enabled properly.
I located the following relevant thread that addresses this error:

Widget Javascript not detected
https://github.com/jupyter-widgets/ipywi...issues/541

From the advice given in that thread, I have successfully executed both of the following lines in my Anaconda prompt opened as administrator:

jupyter nbextension enable --py --sys-prefix widgetsnbextension

jupyter nbextension enable --py widgetsnbextension
However, even after closing out of my Spyder editor and restarting to ensure that these updates have registered, this has not resolved this error message.

I've also created a Jupyter Notebook with this code to see if the behavior is different; when I run the cell above, I get the different error message:

Error:
Could not create model: Model name hello_model Model module my_widget Model module version * Script error for "my_widget" http://requirejs.org/docs/errors.html#scripterror
Any suggestions about how I might resolve this error message will be much appreciated. Thanks!!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  python not detected on computer adriennn 3 957 Nov-18-2023, 02:46 PM
Last Post: snippsat
  My .exe made using Python being detected as a virus 100grassfed 2 3,022 Jun-16-2021, 04:41 AM
Last Post: buran
  python --version yields no output, not detected by other programs ten 3 3,444 Jun-25-2020, 04:48 AM
Last Post: perfringo
  Go to line starting with and variable not detected morgandebray 5 3,336 Aug-09-2018, 09:00 AM
Last Post: morgandebray
  Object Detection that records the number of secs the face is not detected trabis03 1 2,546 Jul-21-2017, 04:14 PM
Last Post: nilamo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020