Code Monkey home page Code Monkey logo

jupyterhub_examples's Introduction

JupyterHub examples

Notebooks, databases and ppt to run examples. The recorded lunchbox session can be found here

Python notebook

To be able to run the Python notebook, you need to install a correct conda environment yourself. In this case an environment called p39env:

conda create -n p39env python=3.9 tensorflow-gpu ipykernel

Add this kernel to your VSC_HOME/.local folder:

source activate p39env
python -m ipykernel install  --prefix=${VSC_HOME}/.local/ --name 'p39env'

Now, the kernel should appear in your kernel list and work fine. The matplotlib package is not yet installed, but will be installed in the notebook.

In the notebook, we use a locally stored pickle dataset to show that we can read from VSC_DATA. As it is too big to save ont GitHub, you can download and save it as follows (in a Python interpreter):

import os
import pickle
import tensorflow as tf

os.chdir('jupyterHUB_examples')
os.mkdir('py_notebook_ex')

dt = tf.keras.datasets.mnist.load_data()
with open('mnist.pickle', 'wb') as f:
    pickle.dump(dt, f)

Now you should be able to run the notebook without any problems.

R notebook

Similar as for the Python notebook, first install a R conda environment:

conda create -n r41env -c conda-forge r-base r-ggplot2 r-factoextra jupyter_client r-irkernel

Add the kernel to your VSC_HOME/.local folder:

source activate r41env
Rscript -e 'IRkernel::installspec(prefix="${VSC_HOME}/.local/", name="r41env", 	displayname="r41env")โ€™

This kernel should be available in your kernel list now as well.

jupyterhub_examples's People

Contributors

w-lampaert avatar

Stargazers

Alexandre Bohyn avatar Florian Sauerland avatar

Watchers

Ehsan Moravveji avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.