Skip to content

Commit fae664f

Browse files
author
Adam Johnson
committed
ensure package fails to install on Python 2
1 parent eb0d26c commit fae664f

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# notebook_xterm
22
[![PyPI version](https://badge.fury.io/py/notebook-xterm.svg)](https://badge.fury.io/py/notebook-xterm)
33

4-
A fully-functional terminal emulator in an IPython/Jupyter notebook. This is useful for notebook environments that don't provide shell access. Uses [xterm.js](https://xtermjs.org) for a VT100-compliant Javascript terminal front-end component. Instead of an actual WebSocket, notebook_xterm uses the Javascript Jupyter cell execute function `Jupyter.notebook.kernel.execute()` as a channel to communicate between the Python runtime on the server (`TerminalServer`) and JavaScript runtime in the browser (`TerminalClient`).
4+
A fully-functional terminal emulator in an IPython/Jupyter notebook. This is useful for notebook environments that don't provide shell access. Uses [xterm.js](https://xtermjs.org) for a VT100-compliant Javascript terminal front-end component. Instead of an actual WebSocket, notebook_xterm uses the Javascript Jupyter cell execute function `Jupyter.notebook.kernel.execute()` as a channel to communicate between the Python runtime on the server (`TerminalServer`) and JavaScript runtime in the browser (`TerminalClient`). Note that currently this extension works only in Python 3 notebooks--Python 2 is not supported.
55

66
![notebook_xterm_animation](https://user-images.githubusercontent.com/1238730/33512219-7d093170-d6f9-11e7-905f-480d62d17cd2.gif)
77

notebook_xterm/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""A fully-functional terminal emulator in a Jupyter notebook."""
2-
__version__ = '0.1.1'
2+
__version__ = '0.1.2'
33
from .xterm import Xterm
44

55
def load_ipython_extension(ipython):

pypi_dist.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/usr/bin/env bash
2+
#be sure to update the version in setup.py and notebook_xterm/__init__.py
3+
rm -rf dist/*
4+
python setup.py sdist
5+
python setup.py bdist_wheel
6+
twine upload dist/*

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
from setuptools import setup
22

33
setup(name='notebook_xterm',
4-
version='0.1.1',
4+
version='0.1.2',
55
description='A fully-functional terminal emulator in a Jupyter notebook.',
66
url='http://github.com/adamj9431/notebook_xterm',
77
author='Adam Johnson',
88
author_email='adam.johnson@us.ibm.com',
99
license='MIT',
1010
packages=['notebook_xterm'],
1111
keywords='Jupyter xterm notebook terminal bash shell cli',
12+
python_requires='~=3.3',
1213
include_package_data=True,
1314
zip_safe=False)

0 commit comments

Comments
 (0)