Questions tagged [jupyter-widget]
14 questions
2
votes
1 answer
JupyterLab: Failed to load model class 'HBoxModel'
I am using JupyterLab and trying to run tqdm. I've had an error persist for quite a while that seems to be a JS error.
Extensions:
Other labextensions (built into JupyterLab)
app dir:…

Beezley
- 29
- 1
- 6
2
votes
0 answers
ipyvuetify: The resource “(localhost).../extension.js?v=...” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff)
I am getting this error/warning on the browser
(e.g. Use Firefox, and right-click "inspect element")
from both jupyter and voila when trying to run any
ipyvuetify.VuetifyTemplate / vue.VueTemplate objects,
It does not stop the widget from running,…

ntg
- 12,950
- 7
- 74
- 95
1
vote
1 answer
Jupyter Notebook - underscore.js doesn't seem to be accessible anymore
I'm using a custom widget in Jupyter. After upgrading to a new machine it stopped functioning. Checking the javascript console in the browser window running the notebook I see the error ReferenceError: _ is not defined. Indeed, running the following…

John
- 723
- 1
- 5
- 12
1
vote
2 answers
Unable to use specific React version in a Jupyter Widget
I'm trying to write a Jupyter Widget that uses react based on this cookiecutter. I specifically need to use a certain version of react. However, even when installing a specific version, after building the widget, a different version is used in the…

LukasP
- 31
- 1
- 6
1
vote
0 answers
Embed widgets in Jupyter markdown
I'm trying to compose a table (markdown or html) which contains a Jupyter widget - a button on each row. I've tried outputting bits of HTML using display(HTML(...)) but it renders everything in its own div thus ruining the table.

Konrads
- 2,206
- 2
- 30
- 45
1
vote
0 answers
Overwrite string in for loop in Jupyter Lab Output widget
I am trying to create a sort of survey using Jupyter widgets.
As a bare-bone example, I would like to ask the user if he likes a kind of fruit in a list,
let him check yes/no in a RadioButtons widget, let him submit his answer, and then ask him if…

Enrico Gandini
- 855
- 5
- 29
0
votes
0 answers
How can I bind a variable to a value in widget
What is the simplest way to bind a variable to a value in widget?
For eg.
x = 3
from ipywidgets import widgets
input_text = widgets.Text()
input_text
Here in the text box ("input_text"), I need to refer to the variable x. Such that input_text.value…
0
votes
0 answers
Jupyter underscore.js changes breaking widgets?
I'm using a complicated custom widget in Jupyter. I got a report from a user that it didn't work, and in the javascript console it gave the error 'ReferenceError: _ is not defined'. I asked the user to run
%%js
alert(_)
in a Jupyter cell, which…

John
- 723
- 1
- 5
- 12
0
votes
0 answers
How to center align the text of an ipywidgets.Text widget
Consider 3 different ways to display text input using jupyter ipywidgets:
from ipywidgets import Text,HTML,Layout
from IPython.display import display
# Using the HTML widget
input_html = """

billybyte
- 51
- 1
- 4
0
votes
0 answers
Trying to upload a simple colab notebook to a webpage hosted by voila and mybinder, but the VBoxModel is not woking
I'm the whole day trying to upload a simple deep learning model that predicts 3 thing in a web page using voila and mybinder. The problem is that I'm using the VBoxModel method to show the program, but its not working. error:
Error:
Failed to load…

Crab Shin
- 1
- 1
0
votes
0 answers
How can I solve jupyter lab dependency issues when installing an extension?
I'm trying a new Python lib, and the docs tell to install a jupyter lab extension to make it work, using the command:
jupyter labextension install @jupyter-widgets/jupyterlab-manager@2
However, there is some kind of conflict. I have no idea how to…

Celso
- 649
- 1
- 6
- 15
0
votes
1 answer
Jupyter Notebook - Unable to get user input the second time - EOFError: EOF when reading a line
I am trying to create a chatbot like UI where I wish to recursively ask user to input question through the input() function and pass it to an external function and fetch a relevant answer.
---> 36 ques[0] = input("How can i help you? ")
37 …

LVA
- 39
- 1
- 7
0
votes
1 answer
Overwrite string of Jupyter Output widget
How do I overwrite a string that is printed by Jupyter Output widget?
For instance, I know how to do that using simple print statements:
from IPython.display import display, clear_output
fruits = ["apple", "orange", "kiwi"]
for fruit in fruits:
…

Enrico Gandini
- 855
- 5
- 29
0
votes
1 answer
How do I get Juypter Widgets to render properly through Sphinx and nbconvert?
I am using Jupyter widgets in my notebooks. My notebooks are then processed through Sphinx + nbsphinx to generate HTML. I noticed that even the simple example below shows a slider in my notebook (on Jupyter Lab), but the generated, corresponding…

Jane Wayne
- 8,205
- 17
- 75
- 120