Notebooks Sample Project

Last updated: February 25th, 20192019-02-25Project preview

Welcome to Notebooks AI! πŸŽ‰πŸŽŠπŸ’ƒπŸ•ΊπŸΎΒΆ

A FREE online Data Science environment. Check out all these amazing features πŸ‘Š

All libraries already installedΒΆ

  • pandas, check βœ…
  • seaborn, check βœ…
  • bokeh, check βœ…
  • and many more!

There are several Docker images (open source) pre-built with the most popular libraries for Data Science, ML and Deep Learning:

InΒ [2]:
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt

%matplotlib inline
InΒ [4]:
# Data for plotting
t = np.arange(0.0, 2.0, 0.01)
s = 1 + np.sin(2 * np.pi * t)

fig, ax = plt.subplots()
ax.plot(t, s)

ax.set(xlabel='time (s)', ylabel='voltage (mV)',
       title='About as simple as it gets, folks')
ax.grid()

fig.savefig("test.png")
plt.show()

Install your own librariesΒΆ

Did we miss any library that you need? Just install it! This environment is completely isolated and you can install your own stuff. You can also include custom requirements.txt that will be installed automatically.

InΒ [5]:
!pip install maya
Collecting maya
  Downloading https://files.pythonhosted.org/packages/e7/01/a03a05807447194e53135b886b671beeb3805638dee017e7acb610242be9/maya-0.6.0-py2.py3-none-any.whl
Collecting humanize (from maya)
  Downloading https://files.pythonhosted.org/packages/8c/e0/e512e4ac6d091fc990bbe13f9e0378f34cf6eecd1c6c268c9e598dcf5bb9/humanize-0.5.1.tar.gz
Requirement already satisfied: pytz in /usr/local/lib/python3.6/site-packages (from maya) (2018.7)
Collecting pendulum>=2.0.2 (from maya)
  Downloading https://files.pythonhosted.org/packages/69/cc/3eb8b945cad22589766bf4840976c115892df57ee7fa21864f1e50717444/pendulum-2.0.4-cp36-cp36m-manylinux1_x86_64.whl (139kB)
    100% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 143kB 37.0MB/s 
Collecting dateparser>=0.7.0 (from maya)
  Downloading https://files.pythonhosted.org/packages/ac/9e/1aa87c0c59f9731820bfd20a8b148d97b315530c2c92d1fb300328c8c42f/dateparser-0.7.0-py2.py3-none-any.whl (357kB)
    100% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 358kB 35.6MB/s 
Collecting snaptime (from maya)
  Downloading https://files.pythonhosted.org/packages/f3/f4/cb818c9bfdac4605f13296f7fcfe068aee7d1c3aa89f8cc22a064c1fab20/snaptime-0.2.4.tar.gz
Collecting tzlocal (from maya)
  Downloading https://files.pythonhosted.org/packages/cb/89/e3687d3ed99bc882793f82634e9824e62499fdfdc4b1ae39e211c5b05017/tzlocal-1.5.1.tar.gz
Collecting pytzdata>=2018.3 (from pendulum>=2.0.2->maya)
  Downloading https://files.pythonhosted.org/packages/46/8b/d7fe0c5b24870438d5ed59ceab72d537c5374d7db3cc57107e4a922b3a23/pytzdata-2018.7-py2.py3-none-any.whl (971kB)
    100% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 972kB 30.3MB/s 
Requirement already satisfied: python-dateutil<3.0,>=2.6 in /usr/local/lib/python3.6/site-packages (from pendulum>=2.0.2->maya) (2.7.5)
Collecting regex (from dateparser>=0.7.0->maya)
  Downloading https://files.pythonhosted.org/packages/16/07/ee3e02770ed456a088b90da7c9b1e9aa227e3c956d37b845cef2aab93764/regex-2018.11.22.tar.gz (648kB)
    100% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 655kB 490kB/s 
Requirement already satisfied: six>=1.5 in /usr/local/lib/python3.6/site-packages (from python-dateutil<3.0,>=2.6->pendulum>=2.0.2->maya) (1.12.0)
Building wheels for collected packages: humanize, snaptime, tzlocal, regex
  Running setup.py bdist_wheel for humanize ... done
  Stored in directory: /root/.cache/pip/wheels/69/86/6c/f8b8593bc273ec4b0c653d3827f7482bb2001a2781a73b7f44
  Running setup.py bdist_wheel for snaptime ... done
  Stored in directory: /root/.cache/pip/wheels/59/e3/55/b528efc85cc6a85b6ac7b7d7af10e82b09d1299c49aeddeaf3
  Running setup.py bdist_wheel for tzlocal ... done
  Stored in directory: /root/.cache/pip/wheels/15/ae/df/a67bf1ed84e9bf230187d36d8dcfd30072bea0236cb059ed91
  Running setup.py bdist_wheel for regex ... done
  Stored in directory: /root/.cache/pip/wheels/56/b8/60/93cb6f51554e529246d89c994c1cba7b64d768ff1680062661
Successfully built humanize snaptime tzlocal regex
Installing collected packages: humanize, pytzdata, pendulum, tzlocal, regex, dateparser, snaptime, maya
Successfully installed dateparser-0.7.0 humanize-0.5.1 maya-0.6.0 pendulum-2.0.4 pytzdata-2018.7 regex-2018.11.22 snaptime-0.2.4 tzlocal-1.5.1
You are using pip version 18.0, however version 18.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
InΒ [6]:
import maya
InΒ [7]:
tomorrow = maya.when('tomorrow')
InΒ [8]:
tomorrow.slang_date()
Out[8]:
'tomorrow'
InΒ [9]:
tomorrow.slang_time()
Out[9]:
'in 23 hours'

Upload or download filesΒΆ

You might have noticed that our voltage chart, we saved the figure as test.png, you can download it just by right clicking on it on the tree viewer on the left (not available on mobile, where a regular Notebook is loaded).

Great for EducationΒΆ

We created Notebooks AI for our own students, so Education is 1st class citizen. We've included multiple solutions to simplify your life as a teacher. For example, a public view of your project where a student can just fork and start working immediately.

We've also created our own extensions for JupyterLab, like JupyterLab Solutions. As a teacher, you can hide solutions for your students:

Write a function add that receives 2 numbers and returns the sum of them:

InΒ [10]:
def add(x, y):
    return x + y

Need help, have questions?ΒΆ

We're here to help :) Just open an issue here: https://github.com/notebooks-ai/notebooks-help/issues

Notebooks AI
Notebooks AI Profile20060