Skip to content
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

Merged
merged 4 commits into from Mar 1, 2018

Conversation

ojarjur
Copy link
Contributor

@ojarjur ojarjur commented Mar 1, 2018

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 #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.


This change is Reviewable

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.
@aronchick
Copy link
Contributor

/ok-to-test

@jlewi
Copy link
Contributor

jlewi commented Mar 1, 2018

/approve

@jlewi
Copy link
Contributor

jlewi commented Mar 1, 2018

@ojarjur Thanks for the quick fix!
Do you mind syncing and I'll merge it.
Note we'll need to build and push new images.

@k8s-ci-robot
Copy link
Contributor

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ojarjur
Copy link
Contributor Author

ojarjur commented Mar 1, 2018

@jlewi Synced.

@jlewi jlewi merged commit ba6a045 into kubeflow:master Mar 1, 2018
yanniszark pushed a commit to arrikto/kubeflow that referenced this pull request Feb 15, 2021
* 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
elenzio9 pushed a commit to arrikto/kubeflow that referenced this pull request Oct 31, 2022
…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"
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.

None yet

4 participants