Show More
@@ -1,7 +1,6 b'' | |||||
1 | c = get_config() |
|
1 | c = get_config() | |
2 |
|
2 | |||
3 |
|
3 | |||
4 | c.ConverterTemplate.extract_figures=False |
|
|||
5 | c.ConverterTemplate.template_file='basichtml' |
|
4 | c.ConverterTemplate.template_file='basichtml' | |
6 | c.ConverterTemplate.tex_environement=False |
|
5 | c.ConverterTemplate.tex_environement=False | |
7 |
|
6 |
@@ -1,4 +1,5 b'' | |||||
1 | c = get_config() |
|
1 | c = get_config() | |
|
2 | ||||
2 | load_subconfig('base_html.nbcv') |
|
3 | load_subconfig('base_html.nbcv') | |
3 |
|
4 | |||
4 | c.ConverterTemplate.template_file='fullhtml' |
|
5 | c.ConverterTemplate.template_file='fullhtml' |
@@ -1,11 +1,15 b'' | |||||
1 | c = get_config() |
|
1 | c = get_config() | |
2 |
|
2 | |||
3 | c.ConverterTemplate.extract_figures=True |
|
|||
4 | c.ConverterTemplate.template_file='latex_base' |
|
3 | c.ConverterTemplate.template_file='latex_base' | |
5 | c.ConverterTemplate.tex_environement=True |
|
4 | c.ConverterTemplate.tex_environement=True | |
6 | c.ConverterTemplate.display_data_priority=['latex', 'svg', 'png', 'jpg', 'jpeg' , 'text'] |
|
5 | ||
7 | c.ExtractFigureTransformer.display_data_priority=['latex', 'svg', 'png', 'jpg', 'jpeg'] |
|
6 | ||
8 | c.NbconvertApp.fileext='tex' |
|
7 | c.NbconvertApp.fileext='tex' | |
9 |
|
8 | |||
|
9 | c.GlobalConfigurable.display_data_priority =['latex', 'svg', 'png', 'jpg', 'jpeg' , 'text'] | |||
|
10 | # do not extract text | |||
|
11 | c.ExtractFigureTransformer.display_data_priority=['latex', 'svg', 'png', 'jpg', 'jpeg'] | |||
|
12 | ||||
|
13 | ||||
10 | c.ExtractFigureTransformer.extra_ext_map={'svg':'pdf'} |
|
14 | c.ExtractFigureTransformer.extra_ext_map={'svg':'pdf'} | |
11 | c.ExtractFigureTransformer.enabled=True |
|
15 | c.ExtractFigureTransformer.enabled=True |
@@ -1,6 +1,5 b'' | |||||
1 | c = get_config() |
|
1 | c = get_config() | |
2 |
|
2 | |||
3 | c.ConverterTemplate.extract_figures=False |
|
|||
4 | c.ConverterTemplate.template_file='python' |
|
3 | c.ConverterTemplate.template_file='python' | |
5 | c.ConverterTemplate.tex_environement=False |
|
4 | c.ConverterTemplate.tex_environement=False | |
6 |
|
5 |
@@ -1,12 +1,12 b'' | |||||
1 | c = get_config() |
|
1 | c = get_config() | |
2 |
|
2 | |||
3 | c.ConverterTemplate.extract_figures=True |
|
|||
4 | c.ConverterTemplate.template_file='rst' |
|
3 | c.ConverterTemplate.template_file='rst' | |
5 | c.ConverterTemplate.tex_environement=False |
|
4 | c.ConverterTemplate.tex_environement=False | |
6 |
|
5 | |||
7 | c.NbconvertApp.fileext='rst' |
|
6 | c.NbconvertApp.fileext='rst' | |
8 | c.ExtractFigureTransformer.enabled=True |
|
7 | c.ExtractFigureTransformer.enabled=True | |
9 |
|
8 | |||
|
9 | c.GlobalConfigurable.display_data_priority =['svg', 'png', 'latex', 'jpg', 'jpeg','text'] | |||
10 | c.ExtractFigureTransformer.display_data_priority=['svg', 'png', 'latex', 'jpg', 'jpeg','text'] |
|
10 | c.ExtractFigureTransformer.display_data_priority=['svg', 'png', 'latex', 'jpg', 'jpeg','text'] | |
11 | c.ConverterTemplate.display_data_priority= ['svg', 'png', 'latex', 'jpg', 'jpeg','text'] |
|
11 | c.ConverterTemplate.display_data_priority= ['svg', 'png', 'latex', 'jpg', 'jpeg','text'] | |
12 |
|
12 |
1 | NO CONTENT: file renamed from tests/ipynbref/00_notebook_tour.orig.rst to tests/ipynbref/00_notebook_tour_orig.rst |
|
NO CONTENT: file renamed from tests/ipynbref/00_notebook_tour.orig.rst to tests/ipynbref/00_notebook_tour_orig.rst |
@@ -65,7 +65,6 b' In[3]:' | |||||
65 | Plots with matplotlib |
|
65 | Plots with matplotlib | |
66 | --------------------- |
|
66 | --------------------- | |
67 |
|
67 | |||
68 |
|
||||
69 | IPython adds an 'inline' matplotlib backend, which embeds any matplotlib |
|
68 | IPython adds an 'inline' matplotlib backend, which embeds any matplotlib | |
70 | figures into the notebook. |
|
69 | figures into the notebook. | |
71 |
|
70 | |||
@@ -168,6 +167,7 b' In[19]:' | |||||
168 | .. parsed-literal:: |
|
167 | .. parsed-literal:: | |
169 |
|
168 | |||
170 | 0 1 2 3 4 5 6 7 |
|
169 | 0 1 2 3 4 5 6 7 | |
|
170 | ||||
171 | Clean crash and restart |
|
171 | Clean crash and restart | |
172 | ----------------------- |
|
172 | ----------------------- | |
173 |
|
173 | |||
@@ -248,6 +248,10 b' In[2]:' | |||||
248 | Image(url='http://python.org/images/python-logo.gif') |
|
248 | Image(url='http://python.org/images/python-logo.gif') | |
249 |
|
249 | |||
250 | Out[2]: |
|
250 | Out[2]: | |
|
251 | .. parsed-literal:: | |||
|
252 | ||||
|
253 | <IPython.core.display.Image at 0x1060e7410> | |||
|
254 | ||||
251 |
|
255 | |||
252 | SVG images are also supported out of the box (since modern browsers do a |
|
256 | SVG images are also supported out of the box (since modern browsers do a | |
253 | good job of rendering them): |
|
257 | good job of rendering them): | |
@@ -314,6 +318,10 b' In[6]:' | |||||
314 | SoftLinked |
|
318 | SoftLinked | |
315 |
|
319 | |||
316 | Out[6]: |
|
320 | Out[6]: | |
|
321 | .. parsed-literal:: | |||
|
322 | ||||
|
323 | <IPython.core.display.Image at 0x10fb99b10> | |||
|
324 | ||||
317 |
|
325 | |||
318 | Of course, if you re-run the all notebook, the two images will be the |
|
326 | Of course, if you re-run the all notebook, the two images will be the | |
319 | same again. |
|
327 | same again. | |
@@ -338,6 +346,10 b' In[7]:' | |||||
338 | YouTubeVideo('1j_HxD4iLn8') |
|
346 | YouTubeVideo('1j_HxD4iLn8') | |
339 |
|
347 | |||
340 | Out[7]: |
|
348 | Out[7]: | |
|
349 | .. parsed-literal:: | |||
|
350 | ||||
|
351 | <IPython.lib.display.YouTubeVideo at 0x10fba2190> | |||
|
352 | ||||
341 |
|
353 | |||
342 | Using the nascent video capabilities of modern browsers, you may also be |
|
354 | Using the nascent video capabilities of modern browsers, you may also be | |
343 | able to display local videos. At the moment this doesn't work very well |
|
355 | able to display local videos. At the moment this doesn't work very well | |
@@ -360,6 +372,10 b' In[8]:' | |||||
360 | HTML(data=video_tag) |
|
372 | HTML(data=video_tag) | |
361 |
|
373 | |||
362 | Out[8]: |
|
374 | Out[8]: | |
|
375 | .. parsed-literal:: | |||
|
376 | ||||
|
377 | <IPython.core.display.HTML at 0x10fba28d0> | |||
|
378 | ||||
363 |
|
379 | |||
364 | Local Files |
|
380 | Local Files | |
365 | ----------- |
|
381 | ----------- | |
@@ -446,6 +462,10 b' In[2]:' | |||||
446 | FileLink('00_notebook_tour.ipynb') |
|
462 | FileLink('00_notebook_tour.ipynb') | |
447 |
|
463 | |||
448 | Out[2]: |
|
464 | Out[2]: | |
|
465 | .. parsed-literal:: | |||
|
466 | ||||
|
467 | <IPython.lib.display.FileLink at 0x10f7ea3d0> | |||
|
468 | ||||
449 |
|
469 | |||
450 | Alternatively, if we want to link to all of them, we can use the |
|
470 | Alternatively, if we want to link to all of them, we can use the | |
451 | ``FileLinks`` object, passing ``'.'`` to indicate that we want links |
|
471 | ``FileLinks`` object, passing ``'.'`` to indicate that we want links | |
@@ -462,6 +482,10 b' In[7]:' | |||||
462 | FileLinks('.') |
|
482 | FileLinks('.') | |
463 |
|
483 | |||
464 | Out[7]: |
|
484 | Out[7]: | |
|
485 | .. parsed-literal:: | |||
|
486 | ||||
|
487 | <IPython.lib.display.FileLinks at 0x10f7eaad0> | |||
|
488 | ||||
465 |
|
489 | |||
466 | External sites |
|
490 | External sites | |
467 | ~~~~~~~~~~~~~~ |
|
491 | ~~~~~~~~~~~~~~ | |
@@ -476,6 +500,10 b' In[9]:' | |||||
476 | HTML('<iframe src=http://en.mobile.wikipedia.org/?useformat=mobile width=700 height=350></iframe>') |
|
500 | HTML('<iframe src=http://en.mobile.wikipedia.org/?useformat=mobile width=700 height=350></iframe>') | |
477 |
|
501 | |||
478 | Out[9]: |
|
502 | Out[9]: | |
|
503 | .. parsed-literal:: | |||
|
504 | ||||
|
505 | <IPython.core.display.HTML at 0x1094900d0> | |||
|
506 | ||||
479 |
|
507 | |||
480 | Mathematics |
|
508 | Mathematics | |
481 | ~~~~~~~~~~~ |
|
509 | ~~~~~~~~~~~ | |
@@ -630,4 +658,3 b' In[16]:' | |||||
630 |
|
658 | |||
631 |
|
659 | |||
632 | .. image:: _fig_60.png |
|
660 | .. image:: _fig_60.png | |
633 |
|
General Comments 0
You need to be logged in to leave comments.
Login now