fix cellmagic and load_ext is shorter
This commit is contained in:
parent
78ffee2936
commit
27ebe7646c
|
@ -214,7 +214,7 @@ We see that NumPy has trouble returning to Python land because the main thread h
|
|||
|
||||
First, load the magics
|
||||
```
|
||||
%load_ext per4m.cellmagic
|
||||
%load_ext per4m
|
||||
```
|
||||
|
||||
Run a cell with the `%%giltracer` cell magic.
|
||||
|
|
|
@ -5,3 +5,7 @@ try:
|
|||
except DistributionNotFound:
|
||||
# package is not installed
|
||||
pass
|
||||
|
||||
def load_ipython_extension(ipython):
|
||||
from .cellmagic import load_ipython_extension
|
||||
load_ipython_extension(ipython)
|
||||
|
|
|
@ -32,7 +32,7 @@ class GilTraceMagic(Magics):
|
|||
builder.save(output_file=out_path)
|
||||
|
||||
download = HTML(f'''<a href="{out_path}" download>Download {out_path}</a>''')
|
||||
view = HTML(f'''<a href="{out_path}" target="_blank" rel=”noopener noreferrer”>Open {out_path} in new tab</a> (might not work due to security issue)''')
|
||||
view = HTML(f'''<a href="{out_path}" target="_blank" rel="noopener noreferrer">Open {out_path} in new tab</a> (might not work due to security issue)''')
|
||||
display(download, view)
|
||||
|
||||
def load_ipython_extension(ipython):
|
||||
|
|
Loading…
Reference in New Issue