On Sat, Mar 28, 2020 at 9:00 AM Edward K. Ream <[email protected]> wrote:

> I'll now experiment with installing the prerequisites for jupyter,
holoviews etc. This should be straightforward with pip.

Indeed it was. Everything is easy with pip. From my notes, not my memory:

*Install nbformat*

Starting Leo message gave this message: `import-jupyter-notebook requires
nbformat package`

> pip install nbformat

Successfully installed
  attrs-19.3.0'
  decorator-4.4.2
  importlib-metadata-1.6.0'
  ipython-genutils-0.2.0
  jsonschema-3.2.0
  jupyter-core-4.6.3
  nbformat-5.0.4
  pyrsistent-0.16.0
  pywin32-227
  six-1.14.0
  traitlets-4.3.3
  zipp-3.1.0

*Install holoviews*

This page <https://holoviews.org/install.html> gives various ways of
installing holoviews with pip.

1. The complete installation failed: pip install "holoviews[all]"

ERROR: Could not find a version that satisfies the requirement bzip2; extra
== "all" (from holoviews[all])
   (from versions: none)
ERROR: No matching distribution found for bzip2; extra == "all" (from
holoviews[all])

2. The recommended installation worked: pip install "holoviews[recommended]"

The end of the console log was:

installing collected packages: param, pytz, numpy, python-dateutil, pandas,
pyviz-comms, tqdm, typing-extensions, tornado, MarkupSafe, jinja2, pillow,
PyYAML, pyparsing, packaging, bokeh, markdown, pyct, panel, cycler,
kiwisolver, matplotlib, parso, jedi, pickleshare, pygments, wcwidth,
prompt-toolkit, backcall, colorama, ipython, pyzmq, jupyter-client,
ipykernel, prometheus-client, Send2Trash, testpath, mistune, pandocfilters,
webencodings, bleach, defusedxml, entrypoints, nbconvert, pywinpty,
terminado, notebook, holoviews
    Running setup.py install for backcall ... done
    Running setup.py install for prometheus-client ... done
    Running setup.py install for pandocfilters ... done
Successfully installed
  MarkupSafe-1.1.1
  PyYAML-5.3.1
  Send2Trash-1.5.0
  backcall-0.1.0
  bleach-3.1.4
  bokeh-2.0.0
  colorama-0.4.3
  cycler-0.10.0
  defusedxml-0.6.0
  entrypoints-0.3
  holoviews-1.13.1
  ipykernel-5.2.0
  ipython-7.13.0
  jedi-0.16.0
  jinja2-2.11.1
  jupyter-client-6.1.2
  kiwisolver-1.1.0
  markdown-3.2.1
  matplotlib-3.2.1
  mistune-0.8.4
  nbconvert-5.6.1
  notebook-6.0.3
  numpy-1.18.2
  packaging-20.3
  pandas-1.0.3
  pandocfilters-1.4.2
  panel-0.9.3
  param-1.9.3
  parso-0.6.2
  pickleshare-0.7.5
  pillow-7.0.0
  prometheus-client-0.7.1
  prompt-toolkit-3.0.5
  pyct-0.4.6
  pygments-2.6.1
  pyparsing-2.4.6
  python-dateutil-2.8.1
  pytz-2019.3
  pyviz-comms-0.7.4
  pywinpty-0.5.7
  pyzmq-19.0.0
  terminado-0.8.3
  testpath-0.4.4
  tornado-6.0.4
  tqdm-4.43.0
  typing-extensions-3.7.4.1
  wcwidth-0.1.9
  webencodings-0.5.1

*Install docutils*

Restarting Leo gave this message: Warning: viewrendered3.py running without
docutils.

>pip install docutils

Successfully installed docutils-0.16

*Running holoviews*

At last this script ran within Leo:

import holoviews as hv
hv.extension('matplotlib')
xs = range(-10, 11)
ys = [100-z**2 for z in xs]
curve = hv.Curve((xs, ys))
hv.save(curve, 'curve.png')
print('done')

matplotlib is giving a deprecation warning:

...\Python\Python37\lib\_collections_abc.py:841:
MatplotlibDeprecationWarning:
The datapath rcparam was deprecated in Matplotlib 3.2.1 and will be removed
two minor releases later.

Programs can call warnings.filterwarnings to suppress such things, so it
looks like we are good to go.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAMF8tS3a68cjroiq00fff3WGxP9J3K7p3TD%3DMdvnNeSrHjY3bg%40mail.gmail.com.

Reply via email to