Skip to content

Commit d5c9cc8

Browse files
committed
fix arguments for ipython
1 parent 7801965 commit d5c9cc8

20 files changed

+172
-172
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,4 +244,5 @@ cython_debug/
244244
/tests/jn/output/
245245
tmp.py
246246
/html/
247-
cwlbuild
247+
cwlbuild
248+
/tests/repo-like/result.yaml

examples/compiled_tool/Dockerfile

Lines changed: 0 additions & 3 deletions
This file was deleted.
-39.2 KB
Binary file not shown.

examples/compiled_tool/notebookTool

Lines changed: 0 additions & 23 deletions
This file was deleted.
-51.4 KB
Binary file not shown.

examples/compiled_tool/requirements.txt

Lines changed: 0 additions & 105 deletions
This file was deleted.

examples/compiled_tool/setup.py

Lines changed: 0 additions & 12 deletions
This file was deleted.

examples/compiled_tool/tool.cwl

Lines changed: 0 additions & 20 deletions
This file was deleted.

examples/compiled_tool/tool.tar

-10 KB
Binary file not shown.

examples/intro.ipynb

Lines changed: 30 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
},
1414
{
1515
"cell_type": "code",
16-
"execution_count": 9,
16+
"execution_count": 1,
1717
"metadata": {},
1818
"outputs": [],
1919
"source": [
@@ -24,7 +24,7 @@
2424
},
2525
{
2626
"cell_type": "code",
27-
"execution_count": 4,
27+
"execution_count": 2,
2828
"metadata": {},
2929
"outputs": [],
3030
"source": [
@@ -33,7 +33,7 @@
3333
},
3434
{
3535
"cell_type": "code",
36-
"execution_count": 38,
36+
"execution_count": 3,
3737
"metadata": {},
3838
"outputs": [
3939
{
@@ -60,7 +60,7 @@
6060
},
6161
{
6262
"cell_type": "code",
63-
"execution_count": 40,
63+
"execution_count": 4,
6464
"metadata": {},
6565
"outputs": [
6666
{
@@ -85,6 +85,32 @@
8585
"fig.figure.savefig(after_transform_data)"
8686
]
8787
},
88+
{
89+
"cell_type": "code",
90+
"execution_count": 2,
91+
"metadata": {},
92+
"outputs": [
93+
{
94+
"name": "stdout",
95+
"output_type": "stream",
96+
"text": [
97+
"Traceback (most recent call last):\r\n",
98+
" File \"/Users/dks/.pyenv/versions/3.6.10/bin/jupyter-jn2cwl\", line 33, in <module>\r\n",
99+
" sys.exit(load_entry_point('ipython2cwl', 'console_scripts', 'jupyter-jn2cwl')())\r\n",
100+
" File \"/Users/dks/Workspaces/IPython2CWL/ipython2cwl/ipython2cwl.py\", line 32, in main\r\n",
101+
" converter = AnnotatedIPython2CWLToolConverter(script_code)\r\n",
102+
" File \"/Users/dks/Workspaces/IPython2CWL/ipython2cwl/cwltoolextractor.py\", line 133, in __init__\r\n",
103+
" self._tree = ast.fix_missing_locations(extractor.visit(ast.parse(self._code)))\r\n",
104+
" File \"/Users/dks/.pyenv/versions/3.6.10/lib/python3.6/ast.py\", line 35, in parse\r\n",
105+
" return compile(source, filename, mode, PyCF_ONLY_AST)\r\n",
106+
"TypeError: compile() arg 1 must be a string, bytes or AST object\r\n"
107+
]
108+
}
109+
],
110+
"source": [
111+
"# !jupyter-jn2cwl -o compiled_tool intro.ipynb"
112+
]
113+
},
88114
{
89115
"cell_type": "markdown",
90116
"metadata": {},

0 commit comments

Comments
 (0)