changeset 190:72ae8c768504

update directory structure
author Jeff Hammel <k0scist@gmail.com>
date Thu, 03 Aug 2017 15:37:11 -0700
parents 637507918c17
children 09bcb48cc067
files INSTALL.py a_brief_plotting_survey.txt docs/a_brief_plotting_survey.txt
diffstat 3 files changed, 13 insertions(+), 80 deletions(-) [+]
line wrap: on
line diff
--- a/INSTALL.py	Fri Jul 21 13:10:47 2017 -0700
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,67 +0,0 @@
-#!/usr/bin/env python
-
-"""
-installation script for kplot
-personal experiments in plotting
-"""
-
-import os
-import sys
-import urllib2
-import subprocess
-try:
-    from subprocess import check_call as call
-except:
-    from subprocess import call
-
-REPO='http://k0s.org/hg/kplot'
-DEST='kplot' # name of the virtualenv
-VIRTUALENV='https://raw.github.com/pypa/virtualenv/develop/virtualenv.py'
-
-def which(binary, path=os.environ['PATH']):
-    dirs = path.split(os.pathsep)
-    for dir in dirs:
-        if os.path.isfile(os.path.join(dir, fileName)):
-            return os.path.join(dir, fileName)
-        if os.path.isfile(os.path.join(dir, fileName + ".exe")):
-            return os.path.join(dir, fileName + ".exe")
-
-def main(args=sys.argv[1:]):
-
-    # create a virtualenv
-    virtualenv = which('virtualenv') or which('virtualenv.py')
-    if virtualenv:
-        call([virtualenv, DEST])
-    else:
-        process = subproces.Popen([sys.executable, '-', DEST], stdin=subprocess.PIPE)
-        process.communicate(stdin=urllib2.urlopen(VIRTUALENV).read())
-
-    # create a src directory
-    src = os.path.join(DEST, 'src')
-    os.mkdir(src)
-
-    # clone the repository
-    call(['hg', 'clone', REPO], cwd=src)
-
-    # find the virtualenv python
-    python = None
-    for path in (('bin', 'python'), ('Scripts', 'python.exe')):
-        _python = os.path.join(DEST, *path)
-        if os.path.exists(_python)
-            python = _python
-            break
-    else:
-        raise Exception("Python binary not found in %s" % DEST)
-
-    # find the clone
-    filename = REPO.rstrip('/')
-    filename = filename.split('/')[-1]
-    clone = os.path.join(src, filename)
-    assert os.path.exists(clone), "Clone directory not found in %s" % src
-
-    # ensure setup.py exists
-    assert os.path.exists(os.path.join(clone, 'setup.py')), 'setup.py not found in %s' % clone
-
-    # install the package in develop mode
-    call([python 'setup.py', 'develop'], cwd=clone)
-
--- a/a_brief_plotting_survey.txt	Fri Jul 21 13:10:47 2017 -0700
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,13 +0,0 @@
-Right now, https://github.com/CognitiveNetworks/validation/tree/master/stats , the validation analysis gum+chicken wire framework (working now on replacing the gum and chicken wire with wood + iron), uses matplotlib: http://matplotlib.org/ . It's not bad -- 10 years ago I would have said it was quite amazing -- but its a bit cumbersome.  I don't have time to replace it anytime soon (I don't think, unless it really hits me in the face), but did look into a few solutions yesterday.
-
-My criteria have mostly been around generating standalone plots for quick analysis.  Interactivity would be nice.  HTML would be nice.  But a web service is/was an afterthought, though important, so none of these are necessarily for a plot server to replace stackdriver (though they might be).  They were just quick + nice solutions for my rather narrow requirement that *might* scale to a plot service.
-
-I've really liked d3, though my experience is limited.  It is also javascript, so as much as I'd love to start rewriting everything in node, I'm not planning on doing that today.  So I looked for python to d3 bridges.  http://mpld3.github.io/ looks the most promising -- it is a backend to matplotlib, which already is heavily developed.  It also works with ipython, which I sometimes find useful but mostly don't (though I like the concept).
-
-Second place, and worth looking at (although I haven't much): https://github.com/areski/python-nvd3 . It uses the nvd3 front end to d3, which I don't know how I feel about yet: http://nvd3.org/index.html
-
-A library that doesn't use d3 but is pretty slick: http://bokeh.pydata.org . It was very easy to demo.  I considered ripping out matplotlib and inserting bokeh, as it would have been quick.  I still might, but have bigger fish to fry at the moment.
-
-Those are my top three.  Really, bokeh and mpld3 are my top two python choices, and if I were to consider node (and/or my job was building a plot server to replace stackdriver and not to have useful graphs of analytic tools that aren't yet finished next week), I'm sure I'd have more d3 related choices.  That said, there are a wealth of python plotting options: https://wiki.python.org/moin/NumericAndScientific/Plotting  lists some of them.
-
-This is mostly just a brief knowledge sharing from yesterday; for entertainment purposes only.  matplotlib ain't bad and I'll probably stick with it for now.  I'd love to start moving to a plot server architecture, as Ed mentioned he liked in standup today (I love the idea myself), but that's not my front-burner task.  Still, I hope this is useful.
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/docs/a_brief_plotting_survey.txt	Thu Aug 03 15:37:11 2017 -0700
@@ -0,0 +1,13 @@
+Right now, https://github.com/CognitiveNetworks/validation/tree/master/stats , the validation analysis gum+chicken wire framework (working now on replacing the gum and chicken wire with wood + iron), uses matplotlib: http://matplotlib.org/ . It's not bad -- 10 years ago I would have said it was quite amazing -- but its a bit cumbersome.  I don't have time to replace it anytime soon (I don't think, unless it really hits me in the face), but did look into a few solutions yesterday.
+
+My criteria have mostly been around generating standalone plots for quick analysis.  Interactivity would be nice.  HTML would be nice.  But a web service is/was an afterthought, though important, so none of these are necessarily for a plot server to replace stackdriver (though they might be).  They were just quick + nice solutions for my rather narrow requirement that *might* scale to a plot service.
+
+I've really liked d3, though my experience is limited.  It is also javascript, so as much as I'd love to start rewriting everything in node, I'm not planning on doing that today.  So I looked for python to d3 bridges.  http://mpld3.github.io/ looks the most promising -- it is a backend to matplotlib, which already is heavily developed.  It also works with ipython, which I sometimes find useful but mostly don't (though I like the concept).
+
+Second place, and worth looking at (although I haven't much): https://github.com/areski/python-nvd3 . It uses the nvd3 front end to d3, which I don't know how I feel about yet: http://nvd3.org/index.html
+
+A library that doesn't use d3 but is pretty slick: http://bokeh.pydata.org . It was very easy to demo.  I considered ripping out matplotlib and inserting bokeh, as it would have been quick.  I still might, but have bigger fish to fry at the moment.
+
+Those are my top three.  Really, bokeh and mpld3 are my top two python choices, and if I were to consider node (and/or my job was building a plot server to replace stackdriver and not to have useful graphs of analytic tools that aren't yet finished next week), I'm sure I'd have more d3 related choices.  That said, there are a wealth of python plotting options: https://wiki.python.org/moin/NumericAndScientific/Plotting  lists some of them.
+
+This is mostly just a brief knowledge sharing from yesterday; for entertainment purposes only.  matplotlib ain't bad and I'll probably stick with it for now.  I'd love to start moving to a plot server architecture, as Ed mentioned he liked in standup today (I love the idea myself), but that's not my front-burner task.  Still, I hope this is useful.
\ No newline at end of file