Skip to content
This repository has been archived by the owner on Jun 9, 2023. It is now read-only.

s2i image build repository for jupyter notebook TensorFlow related packages.

License

Notifications You must be signed in to change notification settings

thoth-station/s2i-tensorflow-notebook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

S2I TensorFlow Notebook

Deprecated

  • NOTE: This repo is no longer maintained, we would be using the tensorflow-gpu package for tensorflow going further.
  • Please use the repo s2i-tensorflow-gpu-notebook for issues and requests.

Custom Notebook built with Thoth s2i-minimal-notebook.

This custom notebook contains TensorFlow related packages install with minimal notebook for Data Science usage. This image can be directly used if user needed these package while using the minimal jupyter notebook.

This repository is created from Graham Dumpleton: jupyter-on-openshift/jupyter-notebooks.

We have configured this repository to used pipenv and micropipenv python dependency managers.

List of packages in tensorflow-notebook

- beautifulsoup4
- bokeh
- cloudpickle
- cython
- dask
- dill
- distributed
- h5py
- ipywidgets
- matplotlib
- pandas
- plotly
- pyarrow
- s3fs
- scikit-image
- scikit-learn
- scipy
- seaborn
- sqlalchemy
- statsmodels
- tensorflow

List of extensions

- jupyter-bokeh
- jupyter-tensorboard

Importing the TensorFlow Notebook

A pre-built version of the tensorflow notebook based on Thoth s2i-minimal-notebook, can be found at quay.io:

Docker Repository on Quay

This image could be imported into an OpenShift cluster using OpenShift ImageStream:

apiVersion: image.openshift.io/v1
kind: ImageStream
metadata:
  # (Below label is needed for Opendatahub.io/JupyterHub)
  # labels:
  #   opendatahub.io/notebook-image: "true"
  name: s2i-tensorflow-notebook
spec:
  lookupPolicy:
    local: true
  tags:
  - name: latest
    from:
      kind: DockerImage
      name: quay.io/thoth-station/s2i-tensorflow-notebook:latest

Building the Minimal Notebook

Instead of using the pre-built version of the minimal notebook, you can build the minimal notebook from source code.

With Thoth advise

s2i build . quay.io/thoth-station/s2i-minimal-notebook:latest \
--env ENABLE_PIPENV=1 \
--env THOTH_ADVISE=1 \
--env THOTH_DRY_RUN=0 \
--env THOTH_PROVENANCE_CHECK=1 \
s2i-tensorflow-notebook

Without Thoth advise

s2i build . quay.io/thoth-station/s2i-minimal-notebook:latest \
--env ENABLE_PIPENV=1 \
--env THOTH_ADVISE=0 \
--env THOTH_ERROR_FALLBACK=1 \
--env THOTH_DRY_RUN=1 \
--env THOTH_PROVENANCE_CHECK=0 \
s2i-tensorflow-notebook