Skip to content

Commit

Permalink
Changed name of ipython-http per ccordoba12's suggestion, fixed a cli…
Browse files Browse the repository at this point in the history
…ck bug in messages, and added a favicon
  • Loading branch information
jamesgao committed Oct 27, 2010
1 parent 9a75ab3 commit c02891f
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 4 deletions.
Binary file added IPython/frontend/html/favicon.ico
Binary file not shown.
1 change: 1 addition & 0 deletions IPython/frontend/html/js/ui.js
Expand Up @@ -293,6 +293,7 @@ InputArea.prototype.activate = function () {
this.update() this.update()


var thisObj = this var thisObj = this
this.text.click(function(e) { e.stopPropagation() })
this.text.keydown(function (e) {thisObj.keyfunc(e)}) this.text.keydown(function (e) {thisObj.keyfunc(e)})
this.text.keyup(function (e) { this.text.keyup(function (e) {
thisObj.msg.code = e.target.value thisObj.msg.code = e.target.value
Expand Down
3 changes: 2 additions & 1 deletion IPython/frontend/html/kernelmanager.py
Expand Up @@ -46,7 +46,8 @@ def __contains__(self, client_id):
return client_id in self.clients return client_id in self.clients


def heartbeat(self, client_id): def heartbeat(self, client_id):
self.clients[client_id][0] = time.time() if client_id in self.clients:
self.clients[client_id][0] = time.time()


def send(self, msg_type, *args): def send(self, msg_type, *args):
if msg_type == "connect_request": if msg_type == "connect_request":
Expand Down
2 changes: 1 addition & 1 deletion IPython/frontend/html/notebook.html
Expand Up @@ -3,7 +3,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head> <head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" /> <meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>AJAX test</title> <title>IPython session</title>
<link rel="stylesheet" type="text/css" href="css/defaults.css" /> <link rel="stylesheet" type="text/css" href="css/defaults.css" />
<link rel="stylesheet" type="text/css" href="css/notebook.css" /> <link rel="stylesheet" type="text/css" href="css/notebook.css" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js"></script> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js"></script>
Expand Down
6 changes: 6 additions & 0 deletions IPython/scripts/ipython-webnb
@@ -0,0 +1,6 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

from IPython.frontend.html.ipythonhttp import main

main()
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -209,7 +209,7 @@ def cleanup():
'console_scripts': [ 'console_scripts': [
'ipython = IPython.frontend.terminal.ipapp:launch_new_instance', 'ipython = IPython.frontend.terminal.ipapp:launch_new_instance',
'ipython-qtconsole = IPython.frontend.qt.console.ipythonqt:main', 'ipython-qtconsole = IPython.frontend.qt.console.ipythonqt:main',
'ipython-http = IPython.frontend.html.ipythonhttp:main', 'ipython-webnb = IPython.frontend.html.ipythonhttp:main',
'pycolor = IPython.utils.PyColorize:main', 'pycolor = IPython.utils.PyColorize:main',
'ipcontroller = IPython.kernel.ipcontrollerapp:launch_new_instance', 'ipcontroller = IPython.kernel.ipcontrollerapp:launch_new_instance',
'ipengine = IPython.kernel.ipengineapp:launch_new_instance', 'ipengine = IPython.kernel.ipengineapp:launch_new_instance',
Expand Down
2 changes: 1 addition & 1 deletion setupbase.py
Expand Up @@ -262,7 +262,7 @@ def find_scripts():
pjoin(kernel_scripts, 'ipcluster'), pjoin(kernel_scripts, 'ipcluster'),
pjoin(main_scripts, 'ipython'), pjoin(main_scripts, 'ipython'),
pjoin(main_scripts, 'ipython-qtconsole'), pjoin(main_scripts, 'ipython-qtconsole'),
pjoin(main_scripts, 'ipython-http'), pjoin(main_scripts, 'ipython-webnb'),
pjoin(main_scripts, 'pycolor'), pjoin(main_scripts, 'pycolor'),
pjoin(main_scripts, 'irunner'), pjoin(main_scripts, 'irunner'),
pjoin(main_scripts, 'iptest') pjoin(main_scripts, 'iptest')
Expand Down

0 comments on commit c02891f

Please sign in to comment.