execnb 0.1.7__tar.gz → 0.1.8__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: execnb
3
- Version: 0.1.7
3
+ Version: 0.1.8
4
4
  Summary: A description of your project
5
5
  Home-page: https://github.com/fastai/execnb/
6
6
  Author: Jeremy Howard
@@ -18,10 +18,10 @@ Description-Content-Type: text/markdown
18
18
  License-File: LICENSE
19
19
  Requires-Dist: fastcore>=1.5.5
20
20
  Requires-Dist: ipython
21
- Requires-Dist: mistletoe
22
21
  Provides-Extra: dev
23
22
  Requires-Dist: matplotlib; extra == "dev"
24
23
  Requires-Dist: Pillow; extra == "dev"
24
+ Requires-Dist: mistletoe; extra == "dev"
25
25
 
26
26
  # execnb
27
27
 
@@ -0,0 +1 @@
1
+ __version__ = "0.1.8"
@@ -9,7 +9,7 @@ from fastcore.utils import *
9
9
  from fastcore.script import call_parse
10
10
  from fastcore.ansi import ansi2html
11
11
 
12
- import mistletoe,multiprocessing,types,traceback,signal
12
+ import multiprocessing,types,traceback,signal
13
13
  try:
14
14
  if sys.platform == 'darwin': multiprocessing.set_start_method("fork")
15
15
  except RuntimeError: pass # if re-running cell
@@ -138,6 +138,8 @@ def run(self:CaptureShell,
138
138
 
139
139
  # %% ../nbs/02_shell.ipynb
140
140
  def render_outputs(outputs, ansi_renderer=strip_ansi):
141
+ try: import mistletoe
142
+ except ImportError: return print('mistletoe not found -- please install it')
141
143
  def render_output(out):
142
144
  otype = out['output_type']
143
145
  if otype == 'stream':
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: execnb
3
- Version: 0.1.7
3
+ Version: 0.1.8
4
4
  Summary: A description of your project
5
5
  Home-page: https://github.com/fastai/execnb/
6
6
  Author: Jeremy Howard
@@ -18,10 +18,10 @@ Description-Content-Type: text/markdown
18
18
  License-File: LICENSE
19
19
  Requires-Dist: fastcore>=1.5.5
20
20
  Requires-Dist: ipython
21
- Requires-Dist: mistletoe
22
21
  Provides-Extra: dev
23
22
  Requires-Dist: matplotlib; extra == "dev"
24
23
  Requires-Dist: Pillow; extra == "dev"
24
+ Requires-Dist: mistletoe; extra == "dev"
25
25
 
26
26
  # execnb
27
27
 
@@ -9,10 +9,10 @@ user = fastai
9
9
  author = Jeremy Howard
10
10
  author_email = j@fast.ai
11
11
  branch = master
12
- version = 0.1.7
12
+ version = 0.1.8
13
13
  min_python = 3.7
14
- requirements = fastcore>=1.5.5 ipython mistletoe
15
- dev_requirements = matplotlib Pillow
14
+ requirements = fastcore>=1.5.5 ipython
15
+ dev_requirements = matplotlib Pillow mistletoe
16
16
  console_scripts = exec_nb=execnb.shell:exec_nb
17
17
  audience = Developers
18
18
  language = English
@@ -1 +0,0 @@
1
- __version__ = "0.1.7"
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1,7 +1,7 @@
1
1
  fastcore>=1.5.5
2
2
  ipython
3
- mistletoe
4
3
 
5
4
  [dev]
6
5
  matplotlib
7
6
  Pillow
7
+ mistletoe
File without changes
File without changes
File without changes