Skip to content

Fix pip package in colab with latest closure libraries #2312

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 5, 2019

Conversation

jameswex
Copy link
Contributor

@jameswex jameswex commented Jun 5, 2019

  • Motivation for features / changes

Update of TB to new closure rules broke the functioning of the witwidget pip package in colab.

  • Technical description of changes

Javascript published to colab when using witwidget (in colab/wit.py) was doing work in the global scope, unnecessarily creating global vars that now collide with other vars, leading to JS failures when loading WIT. This javascript should never have used the global scope. This fix moves the work into an anonymous function so as to avoid polluting the global scope.

  • Screenshots of UI changes

N/A

  • Detailed steps to verify changes work correctly (as executed by you)

Pip install local version with this change and verify that witwidget works again in colab.
Also test locally in Jupyter to ensure it still works there.

@jameswex
Copy link
Contributor Author

jameswex commented Jun 5, 2019

@tolga-b please review

@jameswex jameswex requested a review from stephanwlee June 5, 2019 16:11
@jameswex jameswex merged commit d1104f6 into tensorflow:master Jun 5, 2019
@jameswex jameswex deleted the fixpip branch June 5, 2019 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants