question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

pip installing clustergrammer2 only works after refreshing page

See original GitHub issue

Our Jupyter Widget Clustergrammer2 can be installed in-line using !pip install clustergrammer2, but only works after refreshing the page. This must have something to do with the front-end being updated. It used to work without a page refresh when we could pip install packages on the sidebar (see https://www.kaggle.com/cornhundred/heatmap-view-of-modern-era-nba-player-stats).

Also, the widget is not always embedded into the static HTML file, see https://www.kaggle.com/cornhundred/clustergrammer2-test-11-20-2019?scriptVersionId=23782833

I requested that the package be included in the docker image to overcome this issue:

https://github.com/Kaggle/docker-python/pull/647

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:16 (8 by maintainers)

github_iconTop GitHub Comments

3reactions
maartenbreddelscommented, Nov 22, 2019

Hi all,

would love to see some ipywidgets pre-installed (ipywidgets, ipyleaflet, ipyvolume, ipyvuetify, bqplot, …)

pip install clustergrammer2, but only works after refreshing the page.

This is expected, similar to a notebook, the page requests the installed extensions only on page load (pip install cannot trigger this).

The generated html (e.g. https://www.kaggle.com/maartenbreddels/kernel74375c8a45?scriptVersionId=23856887 ) seems to have a wrong url, I see a 404 to:

https://www.kaggleusercontent.com/kf/23856887/eyJhbGciOiJkaXIiLCJlbmMiOiJBMTI4Q0JDLUhTMjU2In0..uBC5QS1rym810gYhQR6ibA.xADq7nFKUpMzP0yPe4g7yoRfx2ccESBBV9igkZxXD6Ve4Vz7hg_ep-IItDSKGU3rMGN9dGGaL8UpyI_SmPRRK3ryIhtrVi6eEuGOowmgjd-VE0HksO1t23B-O6Yfm_4Q11ygTOc7YRSI9rFgulZZEuIOntxdZ_Px1565tMyzWuo.ZBT_UH_qdyBU4nC9V5Mj2g/@jupyter-widgets/html-manager@*/dist/embed-amd.js

If you look at for instance ipyvolume’s docs: https://ipyvolume.readthedocs.io/en/latest/

It requests https://unpkg.com/@jupyter-widgets/html-manager@%5E0.18.0/dist/embed-amd.js

So this seems to be an issue on kaggle’s side I think.

1reaction
djherbiscommented, Dec 18, 2019

@cornhundred So it looks like it is working, however I’ve found a separate post-process which is supposed to enrich notebooks but seems to break the widget by changing the url away from embed-amd.js on unpkg.com.

I’ll work with the owner of that process tomorrow to fix that.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Installing local package with "pip install -e ." does not update ...
I am working on a small package locally, and want to install it in editable mode so that when I make changes to...
Read more >
Clustergrammer Documentation
The Clustergrammer project consists of web-based tools for visualizing and analyzing high-dimensional data as inter-.
Read more >
Installing — Fabric documentation
Fabric is best installed via pip: $ pip install fabric. All advanced pip use cases work too, such as: $ pip install -e...
Read more >
pip-deepfreeze - PyPI
A simple pip freeze workflow for Python application developers. ... yet works in any virtual environment that has pip installed, including python 2....
Read more >
Create Your Custom, private Python Package That You Can ...
You have 2 free member-only stories left this month. ... Including a package here makes sure that when pip installing the toolbox package, ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found