Skip to content

Commit

Permalink
test(#1) rst.md edit+ make html
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoom.Quiet committed Feb 19, 2018
1 parent 11826d2 commit 192dedc
Show file tree
Hide file tree
Showing 54 changed files with 1,801 additions and 1,656 deletions.
2 changes: 1 addition & 1 deletion html/.buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: c286546d3850703810a786c8e307301a
config: 35ef0c11bdd33229e2b5bceaaf297f78
tags: 645f666f9bcd5a90fca523b33c5a78b7
528 changes: 263 additions & 265 deletions html/FAQ.html

Large diffs are not rendered by default.

29 changes: 16 additions & 13 deletions html/IPythonBridge.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>ILeo: Leo’s IPython Bridge &#8212; Leo 5.6 documentation</title>

<link rel="stylesheet" href="_static/classic.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />

<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: './',
Expand All @@ -26,7 +29,7 @@
<link rel="next" title="Using ZODB with Leo" href="zodb.html" />
<link rel="prev" title="Embedding Leo with the leoBridge module" href="leoBridge.html" />
</head>
<body>
<body role="document">
<div class="related" role="navigation" aria-label="related navigation">
<h3>Navigation</h3>
<ul>
Expand All @@ -50,7 +53,7 @@ <h3>Navigation</h3>
<div class="body" role="main">

<div class="section" id="ileo-leo-s-ipython-bridge">
<h1>ILeo: Leos IPython Bridge<a class="headerlink" href="#ileo-leo-s-ipython-bridge" title="Permalink to this headline"></a></h1>
<h1>ILeo: Leo&#8217;s IPython Bridge<a class="headerlink" href="#ileo-leo-s-ipython-bridge" title="Permalink to this headline"></a></h1>
<div class="contents local topic" id="contents">
<p class="topic-title first">Contents</p>
<ul class="simple">
Expand All @@ -65,20 +68,20 @@ <h1>ILeo: Leo’s IPython Bridge<a class="headerlink" href="#ileo-leo-s-ipython-
</div>
<div class="section" id="overview">
<h2><a class="toc-backref" href="#id1">Overview</a><a class="headerlink" href="#overview" title="Permalink to this headline"></a></h2>
<p>Leos <code class="docutils literal"><span class="pre">--ipython</span></code> command-line option enables two-way communication (<strong>ILeo</strong>, the <strong>IPython bridge</strong>) between Leo and IPython: you can run Leo scripts from IPython, and IPython scripts from Leo.</p>
<p>The level of integration is much deeper than conventional integration in IDEs. Most notably, you are able to store and manipulate <em>data</em> in Leo nodes, in addition to mere program codeessentially making ILeo a hierarchical spreadsheet, albeit with non-grid view of the data. The possibilities of this are endless, and the approach can be applied in wide range of problem domains with very little actual coding.</p>
<p>Leo&#8217;s <code class="docutils literal"><span class="pre">--ipython</span></code> command-line option enables two-way communication (<strong>ILeo</strong>, the <strong>IPython bridge</strong>) between Leo and IPython: you can run Leo scripts from IPython, and IPython scripts from Leo.</p>
<p>The level of integration is much deeper than conventional integration in IDEs. Most notably, you are able to store and manipulate <em>data</em> in Leo nodes, in addition to mere program code&#8211;essentially making ILeo a hierarchical spreadsheet, albeit with non-grid view of the data. The possibilities of this are endless, and the approach can be applied in wide range of problem domains with very little actual coding.</p>
</div>
<div class="section" id="starting-ileo">
<h2><a class="toc-backref" href="#id2">Starting ILeo</a><a class="headerlink" href="#starting-ileo" title="Permalink to this headline"></a></h2>
<p>To run Leos IPython bridge:</p>
<p>To run Leo&#8217;s IPython bridge:</p>
<ol class="arabic simple">
<li>Install IPython 4.0 and above and Jupyter.</li>
<li><a class="reference external" href="installing.html#running-leo-from-a-console-window">run Leo in a console window</a> with the <code class="docutils literal"><span class="pre">--ipython</span></code> command-line option enabled. This option starts an instance of the IPython shell in the console. Leo and IPython run simultaneously and independently. Their separate event loops do not interfere with each other. The ipython-new command launches new terminals connected to the same IPython kernel.</li>
</ol>
</div>
<div class="section" id="running-leo-scripts-from-ipython">
<h2><a class="toc-backref" href="#id3">Running Leo scripts from IPython</a><a class="headerlink" href="#running-leo-scripts-from-ipython" title="Permalink to this headline"></a></h2>
<p><em>You can run any Leo script from IPython</em>. The IPython bridge injects an object called _leo into IPythons namespace. IPython scripts may access Leos c and g objects as follows:</p>
<p><em>You can run any Leo script from IPython</em>. The IPython bridge injects an object called _leo into IPython&#8217;s namespace. IPython scripts may access Leo&#8217;s c and g objects as follows:</p>
<div class="highlight-default"><div class="highlight"><pre><span></span><span class="n">c</span><span class="p">,</span><span class="n">g</span> <span class="o">=</span> <span class="n">_leo</span><span class="o">.</span><span class="n">c</span><span class="p">,</span> <span class="n">_leo</span><span class="o">.</span><span class="n">g</span>
</pre></div>
</div>
Expand Down Expand Up @@ -112,12 +115,12 @@ <h2><a class="toc-backref" href="#id3">Running Leo scripts from IPython</a><a cl
</div>
<div class="section" id="running-ipython-scripts-from-leo">
<h2><a class="toc-backref" href="#id4">Running IPython scripts from Leo</a><a class="headerlink" href="#running-ipython-scripts-from-leo" title="Permalink to this headline"></a></h2>
<p><em>You can run any IPython script from Leo</em>. Leos ipython-exec command executes the body text of the presently selected Leo node in the address space of the IPython shell. Such scripts <em>immediately</em> affect the IPython interpreter.</p>
<p>The IPython bridge sets several global variables <em>within Leo</em>, allowing Leo scripts <em>complete</em> access to all of IPythons code and data:</p>
<p><em>You can run any IPython script from Leo</em>. Leo&#8217;s ipython-exec command executes the body text of the presently selected Leo node in the address space of the IPython shell. Such scripts <em>immediately</em> affect the IPython interpreter.</p>
<p>The IPython bridge sets several global variables <em>within Leo</em>, allowing Leo scripts <em>complete</em> access to all of IPython&#8217;s code and data:</p>
<ul class="simple">
<li>g.app.ipk is a <em>singleton</em> instance of the InternalIPKernel class,
defined in leoIPython.py.</li>
<li>g.app.ipk.namespace is IPythons namespace.</li>
<li>g.app.ipk.namespace is IPython&#8217;s namespace.</li>
<li>g.app.ipk.kernelApp is an IPython IPKernelApp object.</li>
<li>g.app.ipk.kernelApp.shell is an IPython InteractiveShell object.
Depending on your installation, this may be a ZMQInteractiveShell.</li>
Expand All @@ -134,8 +137,8 @@ <h2><a class="toc-backref" href="#id5">ILeo as an IPython notebook</a><a class="
</div>
<div class="section" id="ileo-and-the-valuespace-plugin">
<h2><a class="toc-backref" href="#id6">ILeo and the valuespace plugin</a><a class="headerlink" href="#ileo-and-the-valuespace-plugin" title="Permalink to this headline"></a></h2>
<p>Leos valuespace.py plugin uses the ipython namespace when the <code class="docutils literal"><span class="pre">--ipython</span></code> command line switch is in effect.</p>
<p>This plugin provides a workbook like way to get data from Leo document to the namespace, and do calculations based on that data. Having this data be accessible to the ipython instance makes it convenient to interact and poke around with the same data.</p>
<p>Leo&#8217;s valuespace.py plugin uses the ipython namespace when the <code class="docutils literal"><span class="pre">--ipython</span></code> command line switch is in effect.</p>
<p>This plugin provides a &#8220;workbook&#8221; like way to get data from Leo document to the namespace, and do calculations based on that data. Having this data be accessible to the ipython instance makes it convenient to interact and poke around with the same data.</p>
</div>
<div class="section" id="acknowledgements-and-history">
<h2><a class="toc-backref" href="#id7">Acknowledgements and history</a><a class="headerlink" href="#acknowledgements-and-history" title="Permalink to this headline"></a></h2>
Expand Down Expand Up @@ -192,7 +195,7 @@ <h3>Navigation</h3>
</div>
<div class="footer" role="contentinfo">
&#169; Copyright 1997-2017, Edward K. Ream.
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.6.7.
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.5.5.
</div>
</body>
</html>
2 changes: 1 addition & 1 deletion html/_sources/FAQ.md.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ FAQ
####

This is Leo's Frequently Asked Questions document.
这是 Leo 常见问题回答
这是 Leo 常见问题回答?

.. index:: FAQ

Expand Down
25 changes: 14 additions & 11 deletions html/acknowledgements.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>Acknowledgements &#8212; Leo 5.6 documentation</title>

<link rel="stylesheet" href="_static/classic.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />

<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: './',
Expand All @@ -26,7 +29,7 @@
<link rel="next" title="Leo’s MIT license" href="license.html" />
<link rel="prev" title="What People are Saying about Leo" href="testimonials.html" />
</head>
<body>
<body role="document">
<div class="related" role="navigation" aria-label="related navigation">
<h3>Navigation</h3>
<ul>
Expand Down Expand Up @@ -65,22 +68,22 @@ <h1>Acknowledgements<a class="headerlink" href="#acknowledgements" title="Permal
Oh my God, what a fucking nightmare!
</pre></div>
</div>
<p>Leo owes much of its visual design to MORE, possibly the most elegant computer program ever written. Leos clone nodes are inspired by MORE.</p>
<p>Leo owes much of its visual design to MORE, possibly the most elegant computer program ever written. Leo&#8217;s clone nodes are inspired by MORE.</p>
<p>The following deserve special thanks:</p>
<ul class="simple">
<li>David Brock wrote TSyntaxMemo, used in early versions of Leo.</li>
<li>Terry Brown contributed many important features including Leos user-modifiable panes, and several important plugins, including bookmarks.py and todo.py. He also pushes back against my foolish ideas.</li>
<li>Terry Brown contributed many important features including Leo&#8217;s user-modifiable panes, and several important plugins, including bookmarks.py and todo.py. He also pushes back against my foolish ideas.</li>
<li>e inspired &#64;button nodes, a truly brilliant idea.</li>
<li>The late Bob Fitzwater kept me focused on design. Oh, how I wish he could see todays Leo.</li>
<li>Jonathan M. Gilligan showed how to put the Leo icon in Leos windows.</li>
<li>The late Bob Fitzwater kept me focused on design. Oh, how I wish he could see today&#8217;s Leo.</li>
<li>Jonathan M. Gilligan showed how to put the Leo icon in Leo&#8217;s windows.</li>
<li>Donald Knuth invented the CWEB language and literate programming.</li>
<li>LeoUser (B.H.) contributed numerous plugins, including a prototype for Leos minibuffer, and wrote jyLeo: Leo in Jython.</li>
<li>The late Bernhard Mulder invented the fundamental &#64;shadow algorithm, a stroke of genius. Bernhard also inspired Leos generators and position class. The one-node world could not have happened without Bernhard.</li>
<li>LeoUser (B.H.) contributed numerous plugins, including a prototype for Leo&#8217;s minibuffer, and wrote jyLeo: Leo in Jython.</li>
<li>The late Bernhard Mulder invented the fundamental &#64;shadow algorithm, a stroke of genius. Bernhard also inspired Leo&#8217;s generators and position class. The one-node world could not have happened without Bernhard.</li>
<li>Joe Orr created tutorials and XSLT stylesheets for Leo: <a class="reference external" href="http://www.jserv.com/jk_orr/xml/leo.htm">http://www.jserv.com/jk_orr/xml/leo.htm</a>.</li>
<li>John K. Ousterhout created tcl/Tk, used in early versions of Leo.</li>
<li>Tsuchi Noko created transparent icons.</li>
<li>Neal Norwitz wrote PyChecker.</li>
<li>Marc-Antoine Parent urged me to use XML for Leos file format and helped improve it.</li>
<li>Marc-Antoine Parent urged me to use XML for Leo&#8217;s file format and helped improve it.</li>
<li>Paul Paterson created the plugin architecture, helped with spell checking and contributed many plugins.</li>
<li>François Pinard wrote pymacs.</li>
<li>Norman Ramsey created noweb and gave permission to quote from the noweb web documentation.</li>
Expand Down Expand Up @@ -117,7 +120,7 @@ <h4>Previous topic</h4>
title="previous chapter">What People are Saying about Leo</a></p>
<h4>Next topic</h4>
<p class="topless"><a href="license.html"
title="next chapter">Leos MIT license</a></p>
title="next chapter">Leo&#8217;s MIT license</a></p>
<div id="searchbox" style="display: none" role="search">
<h3>Quick search</h3>
<form class="search" action="search.html" method="get">
Expand Down Expand Up @@ -150,7 +153,7 @@ <h3>Navigation</h3>
</div>
<div class="footer" role="contentinfo">
&#169; Copyright 1997-2017, Edward K. Ream.
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.6.7.
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.5.5.
</div>
</body>
</html>
Loading

0 comments on commit 192dedc

Please sign in to comment.