Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gwenaël Samain
cython
Commits
49851cae
Commit
49851cae
authored
Sep 09, 2017
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reorder options in Jupyter magic to show most common ones first in the help page.
parent
f6822a4e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
Cython/Build/IpythonMagic.py
Cython/Build/IpythonMagic.py
+14
-14
No files found.
Cython/Build/IpythonMagic.py
View file @
49851cae
...
@@ -177,9 +177,12 @@ class CythonMagics(Magics):
...
@@ -177,9 +177,12 @@ class CythonMagics(Magics):
@
magic_arguments
.
magic_arguments
()
@
magic_arguments
.
magic_arguments
()
@
magic_arguments
.
argument
(
@
magic_arguments
.
argument
(
'--pgo'
,
dest
=
'pgo'
,
action
=
'store_true'
,
default
=
False
,
'-a'
,
'--annotate'
,
action
=
'store_true'
,
default
=
False
,
help
=
(
"Enable profile guided optimisation in the C compiler. "
help
=
"Produce a colorized HTML version of the source."
"Compiles the cell twice and executes it in between to generate a runtime profile."
)
)
@
magic_arguments
.
argument
(
'-+'
,
'--cplus'
,
action
=
'store_true'
,
default
=
False
,
help
=
"Output a C++ rather than C file."
)
)
@
magic_arguments
.
argument
(
@
magic_arguments
.
argument
(
'-3'
,
dest
=
'language_level'
,
action
=
'store_const'
,
const
=
3
,
default
=
None
,
'-3'
,
dest
=
'language_level'
,
action
=
'store_const'
,
const
=
3
,
default
=
None
,
...
@@ -189,6 +192,11 @@ class CythonMagics(Magics):
...
@@ -189,6 +192,11 @@ class CythonMagics(Magics):
'-2'
,
dest
=
'language_level'
,
action
=
'store_const'
,
const
=
2
,
default
=
None
,
'-2'
,
dest
=
'language_level'
,
action
=
'store_const'
,
const
=
2
,
default
=
None
,
help
=
"Select Python 2 syntax."
help
=
"Select Python 2 syntax."
)
)
@
magic_arguments
.
argument
(
'-f'
,
'--force'
,
action
=
'store_true'
,
default
=
False
,
help
=
"Force the compilation of a new module, even if the source has been "
"previously compiled."
)
@
magic_arguments
.
argument
(
@
magic_arguments
.
argument
(
'-c'
,
'--compile-args'
,
action
=
'append'
,
default
=
[],
'-c'
,
'--compile-args'
,
action
=
'append'
,
default
=
[],
help
=
"Extra flags to pass to compiler via the `extra_compile_args` "
help
=
"Extra flags to pass to compiler via the `extra_compile_args` "
...
@@ -224,17 +232,9 @@ class CythonMagics(Magics):
...
@@ -224,17 +232,9 @@ class CythonMagics(Magics):
"multiple times)."
"multiple times)."
)
)
@
magic_arguments
.
argument
(
@
magic_arguments
.
argument
(
'-+'
,
'--cplus'
,
action
=
'store_true'
,
default
=
False
,
'--pgo'
,
dest
=
'pgo'
,
action
=
'store_true'
,
default
=
False
,
help
=
"Output a C++ rather than C file."
help
=
(
"Enable profile guided optimisation in the C compiler. "
)
"Compiles the cell twice and executes it in between to generate a runtime profile."
)
@
magic_arguments
.
argument
(
'-f'
,
'--force'
,
action
=
'store_true'
,
default
=
False
,
help
=
"Force the compilation of a new module, even if the source has been "
"previously compiled."
)
@
magic_arguments
.
argument
(
'-a'
,
'--annotate'
,
action
=
'store_true'
,
default
=
False
,
help
=
"Produce a colorized HTML version of the source."
)
)
@
cell_magic
@
cell_magic
def
cython
(
self
,
line
,
cell
):
def
cython
(
self
,
line
,
cell
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment