jupyter_clickable_image_widget icon indicating copy to clipboard operation
jupyter_clickable_image_widget copied to clipboard

Compatability with ipywidgets 7.5

Open jiver54 opened this issue 5 years ago • 4 comments

I have upgraded ipywidgets from 7.4 to 7.5 ... (I wanted the fileupload widget!..) When I use "jupyter_clickable_image_widget" it throws an error "Error displaying widget: model not found"

So I am guessing 7.5 widgets breaks it...

I am using the NVIDIA Jetson Nano..

jiver54 avatar Jan 12 '20 23:01 jiver54

I guess you were trying to run interactive_regression.ipynb in jetracer or jetbot. (Well, I was indeed and encountered the same error..)

If so, the cause doesn't seem to be the version of ipywidgets because the error persisted after downgrading it from 7.5.1 to 7.4.2.

It actually worked to install "no_typescript" branch of jupyter_clickable_image_widget by executing the following commands. (ref. https://github.com/NVIDIA-AI-IOT/jetcard/blob/jetpack_4.3/install.sh)

cd sudo apt-get install nodejs-dev node-gyp libssl1.0-dev sudo apt-get install npm git clone https://github.com/jaybdub/jupyter_clickable_image_widget cd jupyter_clickable_image_widget git checkout no_typescript sudo pip3 install -e . sudo jupyter labextension install js sudo jupyter lab build

hope this will work for you, too.

Lunran avatar Apr 30 '20 15:04 Lunran

Thanks: the installation sequence led to a functional widget that allows to run jetracer scripts on an jetbot image installation. I had to remove the previously cloned directory, and run the above sequence. After restart and call of jupyter, jupyter rebuild itself, somehow did twice. So far the jetbot image allows to run Dlinano, jetbot and jetracer scripts with little additional installations. Thanks.

tomMEM avatar Jul 10 '20 04:07 tomMEM

I guess you were trying to run interactive_regression.ipynb in jetracer or jetbot. (Well, I was indeed and encountered the same error..)

If so, the cause doesn't seem to be the version of ipywidgets because the error persisted after downgrading it from 7.5.1 to 7.4.2.

It actually worked to install "no_typescript" branch of jupyter_clickable_image_widget by executing the following commands. (ref. https://github.com/NVIDIA-AI-IOT/jetcard/blob/jetpack_4.3/install.sh)

cd sudo apt-get install nodejs-dev node-gyp libssl1.0-dev sudo apt-get install npm git clone https://github.com/jaybdub/jupyter_clickable_image_widget cd jupyter_clickable_image_widget git checkout no_typescript sudo pip3 install -e . sudo jupyter labextension install js sudo jupyter lab build

hope this will work for you, too.

I tried in Jetbot but it doesn't work with ipywidgets==7.5.1 and jupyterlab==2.2.6

sanviiz avatar Aug 26 '20 09:08 sanviiz

I guess you were trying to run interactive_regression.ipynb in jetracer or jetbot. (Well, I was indeed and encountered the same error..)

If so, the cause doesn't seem to be the version of ipywidgets because the error persisted after downgrading it from 7.5.1 to 7.4.2.

It actually worked to install "no_typescript" branch of jupyter_clickable_image_widget by executing the following commands. (ref. https://github.com/NVIDIA-AI-IOT/jetcard/blob/jetpack_4.3/install.sh)

cd sudo apt-get install nodejs-dev node-gyp libssl1.0-dev sudo apt-get install npm git clone https://github.com/jaybdub/jupyter_clickable_image_widget cd jupyter_clickable_image_widget git checkout no_typescript sudo pip3 install -e . sudo jupyter labextension install js sudo jupyter lab build

hope this will work for you, too.

The snippet from the install script of jetcard Jetpack 4.5.1 branch works for me, turns out now it need to updated to v0.1 :

git clone https://github.com/jaybdub/jupyter_clickable_image_widget
cd jupyter_clickable_image_widget
git checkout tags/v0.1
sudo -H pip3 install -e .
sudo jupyter labextension install js
sudo jupyter lab build

Thanks for the direction.

fengye avatar Jun 25 '21 01:06 fengye