Commit Graph

933 Commits

Author SHA1 Message Date
Fernando Perez
496d6331c5 Merge pull request #1624 from takluyver/i1470
Two distinct but related fixes for byte-compilation on Python 3.

* A slight hack so setuptools refrains from trying to byte-compile everything - issue #1470. The actual modules are still compiled by another step when I do `python3 setup.py install`, but that step is smart enough not to try to compile the examples as well.

* A workaround for a bug in Python 3.1 - py_compile had only partly implemented PEP 263, so it recognises `coding:`, but not `encoding:` to specify a file encoding. This was causing build failures since my `nonascii.py` test sample was merged.

Closes #1470.
2012-04-18 13:08:54 -07:00
Thomas Kluyver
e825279ded Force setuptools to skip byte compilation when installing on Python 3.
Closes gh-1470
2012-04-18 14:02:29 +01:00
Fernando Perez
af3dd115a3 Merge pull request #1609 from minrk/sigterm
exit notebook cleanly on SIGINT, SIGTERM, and add a safety (text) dialog to ask for exit confirmation.  This prevents an accidental Ctrl-C in the wrong window from destroying a user's potentially large set of notebooks that could have taken a long time to create.

Closes #1601
2012-04-16 12:32:18 -07:00
MinRK
6e2694a9d9 handle old pyzmq in notebook exit confirmation
* 2.1.7 (earliest dep) will simply not work, so skip it
* 2.1.9-10 log the interrupts, so add a short delay to ensure the log
  messages don't come after the prompt.
2012-04-16 11:59:55 -07:00
MinRK
c5d7d6f08a confirm notebook shutdown on SIGINT
confirmation in bg thread, to avoid blocking
5s timeout before restoring original state if no response

^C^C == confirmation
2012-04-15 23:25:09 -07:00
Fernando Perez
8e4d5e90a8 Merge pull request #1604 from takluyver/exclude-quarantine-package
Exclude IPython.quarantine from installation.  The code is still in the source tree so we can gradually revive what's useful, but there's no point in installing it for regular users since by definition it's broken.
2012-04-15 14:35:34 -07:00
MinRK
3c19b40d2f exit notebook cleanly on SIGINT, SIGTERM
makes it a bit more likely security files, etc. will be cleaned up.
2012-04-15 12:06:05 -07:00
Thomas Kluyver
2c693fc89b Exclude IPython.quarantine from installation. 2012-04-15 12:49:46 +01:00
Fernando Perez
0344f92a62 Merge pull request #1490 from minrk/raw
rename plaintext cell -> raw cell

Raw cells should be *untransformed* when writing various output formats, as the point of them is to let users pass through IPython to their rendered document format (rst, latex, etc.).  This is different from what is the logical meaning of 'plaintext', which would suggest that the contents should be preserved as unformatted plaintext (e.g. in a `<pre>` tag, or literal block).

In the UI, these cells will be displayed as 'Raw Text'.

WARNING: any existing v3 notebooks which use plaintext cells, when read in by versions after this merge, will silently rename those cells to 'raw'.  But if such a notebook is uploaded into a pre-merge IPython, cells labeled as 'raw' will simply *not be displayed*.
2012-04-14 17:46:25 -07:00
MinRK
e7a45e9454 add VERSIONHACK markers for never-released plaintext handling 2012-04-14 16:02:53 -07:00
Min RK
ee9cbf39cb Merge pull request #1594 from takluyver/setupbase-py3
Fix writing git commit ID to a file on build with Python 3

use builtin open / str literals instead of io.open & unicode.
2012-04-14 11:39:00 -07:00
Thomas Kluyver
2711bdf8dd Fix writing git commit ID to a file on build with Python 3. 2012-04-14 18:32:49 +01:00
Fernando Perez
526d842289 Merge pull request #1502 from minrk/pyflakes
small changes in response to pyflakes pass

Only significant change: removes incomplete kernelstarter file, which shouldn't have been in the repo at all.

closes #1499
2012-04-14 02:33:29 -07:00
Fernando Perez
ffe488ee0b Emergency fix for py3 breakage introduced in 576f6f (merge of #1538)
Unicode literals (u'foo') aren't valid in Python 3.{1,2} (they will be
again in 3.3, and I failed to notice this.  This is a quick fix, will
discuss further on-list.  But I want master to remain working for py3
users.
2012-04-14 02:10:58 -07:00
Fernando Perez
4b73021647 Merge pull request #1445 from minrk/nosphinx
Don't build sphinx docs for sdists, it makes our source distributions unnecessarily large (and their generation much slower).  Online access to docs is pervasive these days, and our docs are also much easier to build now, reducing the justification for keeping built docs in the source download.
2012-04-14 00:54:37 -07:00
Fernando Perez
6e5d8d5d1a Merge pull request #1538 from minrk/git_info
store git commit hash in utils._sysinfo instead of hidden data file

Behavior is essentially unchanged, but the hash is stored in a generated Python file instead of hidden data file.

Closes #1484.
2012-04-13 22:54:05 -07:00
MinRK
cc4f0f3619 use writelines when writing _sysinfo.py 2012-04-13 21:47:40 -07:00
Fernando Perez
98ac51808e Merge pull request #1563 from minrk/clear_output
clear_output improvements, which allow things like progress bars and other simple animations to work well in the notebook.

* `clear_output()` clears the line, even in terminal IPython, the QtConsole and plain Python as well, by printing `\r` to streams.

* `clear_output()` avoids the flicker in the notebook by adding a delay, and firing immediately upon the next actual display message.

* `display_javascript` hides its `output_area` element, so using display to run a bunch of javascript doesn't result in ever-growing vertical space.
2012-04-13 21:12:23 -07:00
Fernando Perez
14d29450a3 Merge pull request #1560 from minrk/testdocs
remove obsolete discussion of Twisted/trial from testing docs

We don't use trial anymore, so these docs were no longer accurate.

closes #1558
2012-04-13 20:31:32 -07:00
Min RK
c543852c33 Merge pull request #1552 from minrk/fix1550
use os.getcwdu in NotebookManager

prevents unicode error when starting in non-unicode path.

closes #1550
2012-04-09 17:37:08 -07:00
MinRK
9cb1559d5e document initially hidden javascript container 2012-04-09 15:35:29 -07:00
MinRK
c21be2f386 hide output_area for js
prevents growing vertical space from adding empty output_areas.
2012-04-09 15:35:29 -07:00
MinRK
5c6c247b65 [notebook] clear_output is handled after a delay
This reduces flicker during common loops like:

for step in stuff:
    clear_output()
    print something

the timeout is flushed *immediately* on any subsequent output.
2012-04-09 15:35:28 -07:00
MinRK
fe92e50471 remove a few more obsolete twisted notes 2012-04-09 11:01:21 -07:00
MinRK
124037690e use os.getcwdu in NotebookManager
prevents unicode error when starting in non-unicode path.
2012-04-04 09:48:29 -06:00
Min RK
a9e226f943 Merge pull request #1544 from minrk/multilingual
make MultiKernelManager.kernel_manager_class configurable
2012-04-02 19:15:15 -07:00
MinRK
fd2cc9d19e make MultiKernelManager.kernel_manager_class configurable
This allows deployments to use customized KernelManager subclasses via config.
2012-03-31 19:24:38 -07:00
MinRK
0495291a83 store git commit hash in utils._sysinfo instead of hidden git_commit_info.ini data file. 2012-03-30 14:17:16 -07:00
Min RK
c7de46e6cc Merge pull request #1508 from minrk/i1507
fix sorting profiles in clustermanager

dicts aren't orderable on Python3. In any case, these should be sorted by name, not by the ordering of the dicts themselves.

closes #1507
2012-03-16 16:30:00 -07:00
MinRK
600acfb694 fix sorting profiles in clustermanager 2012-03-16 14:52:06 -07:00
MinRK
f9438de710 small changes in response to pyflakes pass
removes incomplete kernelstarter file, which shouldn't be in the repo at all yet.
2012-03-15 15:54:20 -07:00
MinRK
9927cec392 denote raw cell with 'Raw Text' in UI 2012-03-14 15:07:55 -07:00
MinRK
f036c032c7 interpret 'plaintext' cells with their new name 'raw' 2012-03-14 12:45:28 -07:00
MinRK
9ffc7829da rename plaintext cell -> raw cell 2012-03-13 17:31:39 -07:00
Brian E. Granger
5a444db9f7 Merge pull request #1383 from ellisonbg/nbparallel
IPython clusters can now be managed using the Notebook.
2012-03-08 22:19:12 -08:00
MinRK
9d80f8522c use DummyIPClusterStart to load config in notebook ClusterManager
ensures that config loading matches what would happen in ipcluster.

The only change needed in IPClusterStart itself was moving the on_stop registration from init_launchers to start_controller, where it should have been anyway.
2012-03-08 12:21:51 -08:00
Brian Granger
19322be14d Chaging # of engines format in cluster list. 2012-03-08 11:37:28 -08:00
Brian Granger
24510c6e00 Sort profiles in cluster tab. 2012-03-08 11:31:04 -08:00
Brian Granger
c0a87aa940 Notebook cluster manager now uses proper launchers. 2012-03-08 11:27:31 -08:00
Brian Granger
dbefa745fd On tab select, the URL is updated. 2012-03-08 11:27:31 -08:00
Brian Granger
35ffb5500a Cluster management is now working.
You can start/stop clusters in the notebook with a very simple UI. More to do,
but this is a start.
2012-03-08 11:27:30 -08:00
Brian Granger
5df969af5c Fixing tab design. 2012-03-08 11:27:30 -08:00
Brian Granger
34d784a5ab Draft of the cluster list UI.
Not functional yet, but the idea is there.
2012-03-08 11:27:30 -08:00
Brian Granger
b819fbfe8f Initial try at adding tabs to project dashboard. 2012-03-08 11:27:30 -08:00
Brian Granger
3631fae153 Major refactoring of notebook.
* Created new base page html/css/js.
* Everything inherits from the page template.
* Universal header border.
* Notebook list borders are set to 1px all around.
* No border around notebook area.
* Border cleanup of toolbar/menubar.
* Lots of code reorg to get ready for further refactoring.
2012-03-08 11:27:29 -08:00
Brian Granger
6dc7b078b9 Refactoring templates and top level js/css organization. 2012-03-08 11:27:29 -08:00
Brian Granger
f19a63759b First version of cluster web service.
This exposes ipcluster's over the web. The current implementation
uses IPClusterLauncher to run ipcluster in a separate process.
Here is the URL scheme we are using:

GET /clusters => list available clusters
GET /cluster/profile => list info for cluster with profile
POST /cluster/profile/start => start a cluster
POST /cluster/profile/stop => stop a cluster
2012-03-08 11:27:29 -08:00
Brian E. Granger
6b5a5f0b36 Merge pull request #1450 from minrk/httpsmathjax
load mathjax from CDN via https.
2012-02-29 15:27:45 -08:00
Fernando Perez
d3296558ff Merge pull request #1451 from minrk/headlevel
Include heading level in JSON. Closes #1439.
2012-02-28 15:14:48 -08:00
MinRK
8de583a6cd include heading level in JSON
adds level-including to/fromJSON methods to HeadingCell
2012-02-28 14:21:05 -08:00