maphew

Jupyter Notebooks

Wednesday, March 01, 2017

I updated the issue description to better reflect what 'Ground Zero' means.

There are several mentions here and there that nteract ships with a javascript kernel. If that's case, shouldn't it be the default? Or work with nteract --kernel javascript? (Maybe this should be opened as a separate issue?)

From < https://github.com/nteract/nteract/issues/1513

From C:\Program Files\nteract\resources\app.asar.unpacked\node_modules\ijavascript we discover IJavascript  which is presumably the kernel referred to above. From their docs

"IJavascript is a Javascript kernel for the Jupyter notebook "

and

“The IJavascript kernel executes Javascript code inside a Node.js session”

From < https://github.com/n-riesco/ijavascript

 

So our minimum pre-reqs are probably:

  • Jupyter << Python 
  • Ijavascript << Node.js << npm 

(but why bother with Node when python is already installed from Jupyter?)

install miniconda (60mb dn, 250mb installed)

 

To get started developing install a python runtime then install nteract itself .

Python runtime 

At least for now, we need the python 3 kernel installed when hacking on nteract:

python3 -m pip install ipykernel 
python3 -m ipykernel install --user

Install nteract itself 

Requires node 6.x and npm 3 .

From < https://doc.esdoc.org/github.com/nteract/nteract/#python-runtime

 

conda install ipykernel
	#installs 16 dependencies including jupyter_core
python -m ipykernel install --user 

From < https://nteract.io/kernels

Miniconda folder expands to 310mb.

after this nteract can be started from Anaconda shell prompt, but not from start menu.

 

Microsoft Visual C++ Compiler for Python 2.7 

Download 

This package contains the compiler and set of system headers necessary for producing binary wheels for Python 2.7 packages.

From < https://www.microsoft.com/en-us/download/details.aspx?id=44266

 

Fix for this: (?)

Running setup.py install for scandir ... error
Complete output from command C:\Python27\ArcGIS10.4\python.exe -u -c "import
setuptools, tokenize;__file__='c:\\users\\mhwilkie\\appdata\\local\\temp\\pip-b
uild-pvsldh\\scandir\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code
=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))"
install --record c:\users\mhwilkie\appdata\local\temp\pip-uhll2q-record\install
-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build\lib.win32-2.7
copying scandir.py -> build\lib.win32-2.7
running build_ext
building '_scandir' extension
error: Microsoft Visual C++ 9.0 is required. Get it from http://aka.ms/vcpyt 
hon27

----------------------------------------
Command "C:\Python27\ArcGIS10.4\python.exe -u -c "import setuptools, tokenize;__
file__='c:\\users\\mhwilkie\\appdata\\local\\temp\\pip-build-pvsldh\\scandir\\se
tup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n'
, '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record c:\use
rs\mhwilkie\appdata\local\temp\pip-uhll2q-record\install-record.txt --single-ver
sion-externally-managed --compile" failed with error code 1 in c:\users\mhwilkie
\appdata\local\temp\pip-build-pvsldh\scandir\