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.

I can't get widgets to work in python2 kernels in images built by repo2docker

See original GitHub issue

This repository:

https://github.com/simonsfoundation/jp_svg_canvas

attempts to use an environment.yml to set up a python 2 kernel with widgets enabled.

The image built by repo2docker results in a python 3 kernel with working widgets but widgets do not work in the python 2 kernel

screen shot 2018-01-03 at 4 24 30 pm

I also tried other ways to get widgets working under repo2docker in Python 2 kernels, but I’m not having any luck 😦.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
AaronWatterscommented, Mar 21, 2018

problem has gone away

0reactions
betatimcommented, Mar 21, 2018

Tried to make a minimal example for this to reproduce the bug. So I made this repo which contains nothing but a runtime.txt with python-2.7 in it. When I launch a binder the only kernel available is Python 3. Discuss this: #280)

If you then add a requirements.txt you do get a Python 2 kernel. For this repo I added ipywidgets in requirements.txt.

I then added a Button widget in a notebook, which seems to work.

Same with an environment.yml instead of runtime.txt+requirements.txt: https://github.com/betatim/binder-widgets-py2/tree/f7a3e3fdb962a5ec317efdbec92676fdc96c9a0d this also seems to work.

From my side this means “can’t reproduce any more” -> got fixed. @AaronWatters could you confirm that the problem has gone away?

Read more comments on GitHub >

github_iconTop Results From Across the Web

In a Python 2 repository `python` gives you Python 3 · Issue #698 ...
Bug description In a repo with Python 2 selected via a runtime.txt the command python launches Python 3. Expected behaviour python should launch...
Read more >
jupyterhub/binder - Gitter
it's logged to the terminal, but you can't get at that. ... What about build logs? ... @minrk in PANGEO, I'm trying to...
Read more >
Using repo2docker - Read the Docs
Builds a Docker image with an environment specified in these configuration files. Launches the image to let you explore the repository interactively via...
Read more >
Customizing User Environment
To get started customizing the user environment, see the topics below. Choose and use an existing Docker image#. Project Jupyter maintains the jupyter/docker- ......
Read more >
Juniper-js NPM | npm.io
To add interactive code widgets to your site, you'll need a GitHub ... you can build a Docker image on Binder, which will...
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