Skip to content

Commit

Permalink
PyPi test
Browse files Browse the repository at this point in the history
  • Loading branch information
EtienneCmb committed May 6, 2016
1 parent 4af8512 commit 645f269
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 29 deletions.
7 changes: 7 additions & 0 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Copyright (c), 2016, Etienne Combrisson

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
File renamed without changes.
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[metadata]
description-file = README.txt
13 changes: 13 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
from distutils.core import setup
setup(
name = 'ipywksp',
packages = ['ipywksp'], # this must be the same as the name above
version = '0.0.4',
description = 'Workspace for Jupyter',
author = 'Etienne Combrisson',
author_email = 'e.combrisson@gmail.com',
url = 'https://github.com/EtienneCmb/ipywksp', # use the URL to the github repo
download_url = 'https://github.com/EtienneCmb/tarball/0.0.4',
keywords = ['Jupyter', 'notebook', 'workspace'], # arbitrary keywords
classifiers = [],
)
57 changes: 28 additions & 29 deletions wksp.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,44 +20,43 @@ class _createWindow(object):

"""Class to create a window.
Parameters
----------
children : list, [def : []]
List of HTML widgets
Kargs:
children: list, [def: []]
List of HTML widgets
title : list, [def : []]
List of strings for the title of each tab
title: list, [def: []]
List of strings for the title of each tab
kind : string, [def : 'tab]
Display window as tab (kind='tab) or accordion (kind='acc)
kind: string, [def: 'tab]
Display window as tab (kind='tab) or accordion (kind='acc)
resizale : bool, [def : True]
Boolean value to set if the window should be resizable or not
resizale: bool, [def: True]
Boolean value to set if the window should be resizable or not
xscroll : bool, [def : False]
Boolean value to set if the window should be x-scrollable
xscroll: bool, [def: False]
Boolean value to set if the window should be x-scrollable
yscroll : bool, [def : False]
Boolean value to set if the window should be y-scrollable
yscroll: bool, [def: False]
Boolean value to set if the window should be y-scrollable
win, clo, red, enl, tab, fit : string
Name to call it in the javascript (jv). Those parameters can be usefull
if there is multiple windows.
- win : jv name of the window [def : '_cwt']
- tab : jv name of the table [def : '_cwa']
- fit : jv name of the fitting button [def : '_cwf']
- red : jv name of the reduce button [def : '_cwr']
- enl : jv name of the enlarge button [def : '_cwe']
- clo : jv name of the close button [def : '_cwc']
win, clo, red, enl, tab, fit : string
Name to call it in the javascript (jv). Those parameters can be
usefull if there is multiple windows.
- win: jv name of the window [def: '_cwt']
- tab: jv name of the table [def: '_cwa']
- fit: jv name of the fitting button [def: '_cwf']
- red: jv name of the reduce button [def: '_cwr']
- enl: jv name of the enlarge button [def: '_cwe']
- clo: jv name of the close button [def: '_cwc']
tab_kwargs : dict, [def : {}]
Any supplementar arguments to pass to the created tab
tab_kwargs: dict, [def: {}]
Any supplementar arguments to pass to the created tab
win_kwargs : dict, [def : {}]
Any supplementar arguments to pass to the created window
win_kwargs: dict, [def: {}]
Any supplementar arguments to pass to the created window
but_kwargs : dict, [def : {}]
Any supplementar arguments to pass to buttons
but_kwargs: dict, [def: {}]
Any supplementar arguments to pass to buttons
"""

def __init__(self, children=[], title=[''], kind='tab', resizable=True,
Expand Down

0 comments on commit 645f269

Please sign in to comment.