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
Add support for Python 2 kernels to the tensorflow notebook images. #314
Conversation
The Dockerfiles for these images previously tried to install the Python 2 kernel, but omitted the `source activate` step prior to the install step. The result was that rather than installing the Python 2 kernel at the user level, it reinstalled the Python 3 kernel which simply duplicated the existing, globall-installed kernel. With this change "Python 2" now shows up as an option in the Jupyter UI when creating a new notebook, and in an existing notebook you can switch from a Python 3 to a Python 2 kernel using the "kernel" menu. This change is a prerequisite to addressing kubeflow#244, as the tf.Transform library relys on Apache Beam, which currently only supports Python 2. After this change lands, we should be able to add tf.Transform to the `ipykernel_py2` Conda environment, and then it will be usable in Python 2 kernels.
/ok-to-test |
/approve |
@ojarjur Thanks for the quick fix! |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jlewi The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@jlewi Synced. |
* add validating webhook for studyJob If create/update a studyJob with bad CR manifest or invalid configuration, k8s api server will reject the request. Fixes: kubeflow#314 * add test * allow check "kubectl" error code
…m org members (kubeflow#314) Remove bobgy, james-jwu, k8s-ci-robot, rmgogogo from org members, as they were added to org admins To fix github sync error: "Configuration failed: failed to configure kubeflow members: users in both roles: bobgy, james-jwu, k8s-ci-robot, rmgogogo"
The Dockerfiles for these images previously tried to install the
Python 2 kernel, but omitted the
source activate
step priorto the install step.
The result was that rather than installing the Python 2 kernel
at the user level, it reinstalled the Python 3 kernel which simply
duplicated the existing, globall-installed kernel.
With this change "Python 2" now shows up as an option in the Jupyter
UI when creating a new notebook, and in an existing notebook you
can switch from a Python 3 to a Python 2 kernel using the "kernel"
menu.
This change is a prerequisite to addressing #244, as the tf.Transform
library relys on Apache Beam, which currently only supports Python 2.
After this change lands, we should be able to add tf.Transform to
the
ipykernel_py2
Conda environment, and then it will be usablein Python 2 kernels.
This change is