Commit 3e245bbc authored by Adam Fekete's avatar Adam Fekete

update notebook

parent 385d8aa9
......@@ -20,6 +20,16 @@
}
},
"languageVersion": "ES2015"
},
{
"name": "Python3",
"plugin": "Python3",
"setup": "%matplotlib inline\nimport numpy\nimport matplotlib\nfrom matplotlib import pylab, mlab, pyplot\nnp = numpy\nplt = pyplot\nfrom IPython.display import display\nfrom IPython.core.pylabtools import figsize, getfigs\nfrom pylab import *\nfrom numpy import *\n",
"view": {
"cm": {
"mode": "python"
}
}
}
],
"cells": [
......@@ -41,7 +51,7 @@
},
"selectedType": "BeakerDisplay",
"elapsedTime": 0,
"height": 119
"height": 118
},
"evaluatorReader": true,
"lineCount": 1
......@@ -140,7 +150,7 @@
},
"selectedType": "BeakerDisplay",
"elapsedTime": 0,
"height": 72
"height": 71
},
"evaluatorReader": true,
"lineCount": 60
......@@ -259,7 +269,7 @@
},
"selectedType": "BeakerDisplay",
"elapsedTime": 0,
"height": 463
"height": 424
},
"evaluatorReader": true,
"lineCount": 97
......@@ -271,6 +281,192 @@
" "
],
"evaluatorReader": false
},
{
"id": "coderXaUCl",
"type": "code",
"evaluator": "Python3",
"input": {
"body": [
"import sys",
"print(sys.path)",
"",
"import pip",
"installed_packages = pip.get_installed_distributions()",
"installed_packages_list = sorted([\"%s==%s\" % (i.key, i.version)",
" for i in installed_packages])",
"print(installed_packages_list)"
]
},
"output": {
"state": {},
"result": {
"type": "Results",
"outputdata": [
{
"type": "out",
"value": "['', '/home/beaker/src/core/config/plugins/eval/ipythonPlugins/python3', '/home/beaker/py3k/lib/python3.4', '/home/beaker/py3k/lib/python3.4/plat-x86_64-linux-gnu', '/home/beaker/py3k/lib/python3.4/lib-dynload', '/usr/lib/python3.4', '/usr/lib/python3.4/plat-x86_64-linux-gnu', '/home/beaker/py3k/lib/python3.4/site-packages', '/home/beaker/py3k/lib/python3.4/site-packages/IPython/extensions']\n['backports-abc==0.5', 'bleach==1.5.0', 'cycler==0.10.0', 'decorator==4.0.11', 'entrypoints==0.2.2', 'html5lib==0.9999999', 'ipykernel==4.5.2', 'ipython-genutils==0.1.0', 'ipython==5.1.0', 'ipywidgets==5.2.2', 'jinja2==2.9.4', 'jsonschema==2.5.1', 'jupyter-client==4.4.0', 'jupyter-console==5.0.0', 'jupyter-core==4.2.1', 'jupyter==1.0.0', 'markupsafe==0.23', 'matplotlib==2.0.0', 'mistune==0.7.3', 'nbconvert==5.1.1', 'nbformat==4.2.0', 'notebook==4.3.1', 'numpy==1.12.0', 'pandas==0.19.2', 'pandocfilters==1.4.1', 'pexpect==4.2.1', 'pickleshare==0.7.4', 'prompt-toolkit==1.0.9', 'ptyprocess==0.5.1', 'pyaml==16.12.2', 'pygments==2.2.0', 'pyparsing==2.1.10', 'python-dateutil==2.6.0', 'pytz==2016.10', 'pyyaml==3.12', 'pyzmq==16.0.2', 'qtconsole==4.2.1', 'scikit-learn==0.18.1', 'scipy==0.18.1', 'simplegeneric==0.8.1', 'six==1.10.0', 'sklearn==0.0', 'terminado==0.6', 'testpath==0.3', 'tornado==4.4.2', 'traitlets==4.3.1', 'wcwidth==0.1.7', 'widgetsnbextension==1.2.6']\n"
}
]
},
"selectedType": "Results",
"pluginName": "Python3",
"shellId": "F98F513C217F4384914776DDF2E4000E",
"elapsedTime": 307,
"dataresult": [
"",
"/home/beaker/src/core/config/plugins/eval/ipythonPlugins/python3",
"/home/beaker/py3k/lib/python3.4",
"/home/beaker/py3k/lib/python3.4/plat-x86_64-linux-gnu",
"/home/beaker/py3k/lib/python3.4/lib-dynload",
"/usr/lib/python3.4",
"/usr/lib/python3.4/plat-x86_64-linux-gnu",
"/home/beaker/py3k/lib/python3.4/site-packages",
"/home/beaker/py3k/lib/python3.4/site-packages/IPython/extensions"
],
"height": 155
},
"evaluatorReader": true,
"lineCount": 8
},
{
"id": "code04uUm6",
"type": "code",
"evaluator": "Python3",
"input": {
"body": [
"from __future__ import print_function",
"from ipywidgets import interact, interactive, fixed",
"import ipywidgets as widgets"
]
},
"output": {
"state": {},
"selectedType": "Hidden",
"pluginName": "Python3",
"shellId": "F98F513C217F4384914776DDF2E4000E",
"elapsedTime": 305,
"height": 757
},
"evaluatorReader": true,
"lineCount": 3
},
{
"id": "codelqxSr1",
"type": "code",
"evaluator": "Python3",
"input": {
"body": [
"import sys",
"sys.path.append('/mnt/python-module/ML_of_Forces/3D')",
"",
"try:",
" sys.path.remove('/usr/lib/python3.4')",
"except ValueError:",
" pass",
"",
"try:",
" sys.path.remove('/usr/lib/python3.4/plat-x86_64-linux-gnu')",
"except ValueError:",
" pass",
"",
"",
"",
"sys.path"
]
},
"output": {
"state": {},
"result": "<div class=\"output_subarea output_text\"><pre>['',\n '/home/beaker/src/core/config/plugins/eval/ipythonPlugins/python3',\n '/home/beaker/py3k/lib/python3.4',\n '/home/beaker/py3k/lib/python3.4/plat-x86_64-linux-gnu',\n '/home/beaker/py3k/lib/python3.4/lib-dynload',\n '/home/beaker/py3k/lib/python3.4/site-packages',\n '/home/beaker/py3k/lib/python3.4/site-packages/IPython/extensions',\n '/mnt/python-module/ML_of_Forces/3D']</pre></div>",
"selectedType": "Html",
"pluginName": "Python3",
"shellId": "F98F513C217F4384914776DDF2E4000E",
"elapsedTime": 198,
"dataresult": [
"",
"/home/beaker/src/core/config/plugins/eval/ipythonPlugins/python3",
"/home/beaker/py3k/lib/python3.4",
"/home/beaker/py3k/lib/python3.4/plat-x86_64-linux-gnu",
"/home/beaker/py3k/lib/python3.4/lib-dynload",
"/home/beaker/py3k/lib/python3.4/site-packages",
"/home/beaker/py3k/lib/python3.4/site-packages/IPython/extensions",
"/mnt/python-module/ML_of_Forces/3D"
],
"height": 169
},
"evaluatorReader": true,
"lineCount": 16
},
{
"id": "code9AMDvm",
"type": "code",
"evaluator": "Python3",
"input": {
"body": [
"from GP_custom_gen import GaussianProcess3 as GPvec"
]
},
"output": {
"state": {},
"selectedType": "BeakerDisplay",
"pluginName": "Python3",
"shellId": "F98F513C217F4384914776DDF2E4000E",
"elapsedTime": 593
},
"evaluatorReader": true,
"lineCount": 1
},
{
"id": "code4azqE8",
"type": "code",
"evaluator": "Python3",
"input": {
"body": [
"import IPython",
"from ipywidgets import widgets",
"",
"def f(x):",
" return x",
"",
"widgets.interact(f, x=10);",
""
]
},
"output": {
"state": {},
"result": {
"type": "Results",
"outputdata": [
{
"type": "err",
"value": "Widget Javascript not detected. It may not be installed properly. Did you enable the widgetsnbextension? If not, then run \"jupyter nbextension enable --py --sys-prefix widgetsnbextension\"\n"
}
],
"payload": {
"type": "OutputContainer",
"psubtype": "OutputContainer",
"items": [
"<div class=\"output_subarea output_text\"><pre>10</pre></div>",
"<div class=\"output_subarea output_text\"><pre>&lt;function __main__.f&gt;</pre></div>"
]
}
},
"selectedType": "Results",
"pluginName": "Python3",
"shellId": "F98F513C217F4384914776DDF2E4000E",
"elapsedTime": 602,
"height": 143,
"dataresult": {
"type": "OutputContainer",
"psubtype": "OutputContainer",
"items": [
10,
null
]
}
},
"evaluatorReader": true,
"lineCount": 8
}
],
"namespace": {}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment