Commit Graph

151 Commits (7d361bb40d0b7104b019349431568ed8da42f3eb)

Author SHA1 Message Date
Sebastian Pech 4d7a444246 Fix displayed output produced by capture_output 2019-08-21 15:03:22 +02:00
Konstantinos Samaras-Tsakiris ea1de0fb9e
Fix mpastell/Weave.jl#214
Fixes incorrect UTF-8 string handling as described in https://github.com/mpastell/Weave.jl/issues/214.
2019-06-04 21:02:40 +03:00
Matti Pastell 6082786f92 Allow setting document options in YAML header 2019-03-05 19:36:27 +02:00
Matti Pastell 73584edd34 Strip ANSI from text output #184 2019-02-27 16:19:14 +02:00
Matti Pastell e52083c42a Display assigned objects from chunk's last line 2019-02-27 12:42:43 +02:00
Matti Pastell 4a7d63bc7e Clean up and fix svg embedding 2019-02-08 16:01:25 +02:00
schrimpf ab09bddcd8 change cache to work with figures (#158)
* Changed read/write cache to use serialize/deserialize instead of
JLD2. JLD2 fails to save strings longer than 2^16 characters, which
can occur in the stringmime() of large figures.

* Added test for cache with figures and html output.
Updated REQUIRE & Project.toml to include Serialization instead of
FileIO and JLD2

* Added "Import Pkg;" to expected output of errors, so that tests pass.
2019-01-03 15:40:32 +02:00
Matti Pastell 3fc3e3c6e0 Use :label consistently 2018-07-27 10:42:14 +03:00
Matti Pastell 160017b6e8 Remove plot library hack and use Requires instead 2018-07-26 20:32:10 +03:00
Matti Pastell 973274bf22 Fix Plots support 2018-07-26 12:20:04 +03:00
Matti Pastell 93bb9ced2d Fix occursin bugs 2018-07-26 11:35:17 +03:00
Matti Pastell f90547cee6 Fix bug in Sandboxing, run code in sandbox module by default 2018-07-26 02:01:10 +03:00
Matti Pastell 373f5e9d37 Allow choosing where to eval code. 2018-07-25 23:24:25 +03:00
Matti Pastell 57724aff67 Fix error handling test 2018-07-24 11:50:28 +02:00
Matti Pastell 0956ce6dff Fix more deprecations 2018-07-23 19:35:15 +02:00
Matti Pastell 83c506252d Fix formatting deprecations 2018-07-23 19:29:07 +02:00
femtocleaner[bot] f04b67f69b Fix deprecations (#135)
* Fix deprecations

* Fix html output
2018-07-23 13:37:25 +03:00
Matti Pastell 88d8665e03 Load JLD2 and FileIO only when cache is used 2018-01-07 20:01:18 +02:00
Matti Pastell eead8f24a8
Added error handling with html display (#117)
* Implemented error handling and initial html display

* Improved html display and tests for error handling
2018-01-07 11:53:07 +02:00
Matti Pastell 48327bd570 Embed Plots animated gifs to html output. Closes #105 2018-01-04 21:45:43 +02:00
Matti Pastell 51641124b5 Fix output: html wrap bug, output from last line 2018-01-03 15:35:47 +02:00
femtocleaner[bot] 2693389a3a Fix deprecations 2017-12-31 12:02:28 +00:00
Matti Pastell 5c83309aa3 Fix Gadfly and Plots, use Compat.invokelatest 2017-05-12 16:12:05 +03:00
Matti Pastell 562968f9be Don't remove whitespace from start of inline output 2017-04-02 09:47:12 +03:00
Maxim Grechkin 1ab37ae48c fix inline code snippets output 2017-04-01 16:07:15 -07:00
Matti Pastell 9d4817007e Fix world-age for display 2017-03-14 21:06:47 +02:00
Matti Pastell bbad66d0b8 Fix plotting imports and tests 2017-03-14 09:27:16 +02:00
Matti Pastell b2ffefdb27 Remove Winston support, closes #58 2017-03-13 20:57:39 +02:00
Matti Pastell b0d2ccdba2 Cleaner world-age fix for pyplot 2017-03-11 11:31:17 +02:00
Matti Pastell 868efa8208 Use compat for abstract types 2017-03-10 13:09:13 +02:00
Matti Pastell c788f5f15e Fix PyPlot for 0.6 2017-03-09 22:09:36 +02:00
Matti Pastell f1b42156e1 Fix a bug with out_path and tmp figure directory 2016-12-29 17:58:21 +02:00
Matti Pastell e10f27b26f Fix weave messages 2016-12-26 21:28:57 +02:00
Matti Pastell a4cfebcc17 Initial version of running inline code 2016-12-26 21:21:55 +02:00
Matti Pastell 7c5fcd24c6 Pass data to documents #78 2016-12-26 13:26:36 +02:00
Matti Pastell 7c69ce9b0c Fix to embedding figures 2016-12-23 12:27:10 +02:00
Matti Pastell 4d499da343 Embed images for html at runtime and cache result 2016-12-23 12:02:28 +02:00
Matti Pastell d75ae6d86b Fix cache_path and don't clean figures when caching.
Fixes #76
2016-12-23 10:25:23 +02:00
Matti Pastell b14cd13063 Clean extra files for html output #69 2016-12-23 08:34:54 +02:00
Matti Pastell a6b74156f6 Precompile 2016-12-15 19:54:50 +02:00
Matti Pastell d5bbf4f678 Add parsing of YAML header #63 2016-12-14 21:50:29 +02:00
Matti Pastell 50127eaa90 Fix parse error when detecting plot library on windows 2016-12-14 14:28:46 +02:00
Matti Pastell 76bec5c438 Remove use of Pkg.dir 2016-12-12 19:25:51 +02:00
Matti Pastell 43e850f113 Merge branch 'pandoc_header' 2016-11-02 23:48:04 +02:00
Matti Pastell 544ae925e2 Implement adding plotly javascript to html file header using pandoc when needed. Remove Raleway, closes #45 2016-11-02 23:45:32 +02:00
Matti Pastell 82e56aa9f3 Fix capturing stdout to use @async 2016-11-02 20:03:04 +02:00
Matti Pastell 4bc881378b Fix semicolon for term chunks, fixes #56 2016-11-01 21:32:11 +02:00
Matti Pastell d50770abe1 Revert Pkg.dir 2016-10-30 21:16:12 +02:00
Tony Kelman 8324d32f01 No need to eval(parse(include(...)))
just include
2016-09-24 01:07:26 -04:00
Tony Kelman 3ad6d7ae56 Use dirname(@__FILE__) instead of Pkg.dir
so that the package can be installed elsewhere
2016-07-30 16:54:11 -04:00
= 95cfdaf04d Merge branch 'detect_plotlib' 2016-05-02 23:32:18 +03:00
= 5e929b7ef6 Make plotting library autodetection work in first chunk 2016-05-02 23:15:24 +03:00
Giuseppe Ragusa 1834b93cb3 Dispatch on when 2016-05-02 19:33:54 +02:00
Giuseppe Ragusa 1d72309959 Update run.jl 2016-05-02 18:11:08 +02:00
Giuseppe Ragusa cffbb7ff5c Implements chunk option prompt 2016-05-01 00:21:14 +02:00
Giuseppe Ragusa 7a0958cf13 Adding and implementing display chunk option 2016-04-30 23:59:12 +02:00
Matti Pastell 699f5b46e7 Move plotlib_set flag to rcParams 2016-04-29 16:56:05 +03:00
Matti Pastell 30a83667ee Add autodetection of plotting library, and pre and post chunk hooks, prehook for setting plot size with plots.jl 2016-04-29 16:41:18 +03:00
Matti Pastell dca852ed89 Catching of rich output implemented, initial tests with DataFrames and HTML 2016-04-27 19:18:17 +03:00
Matti Pastell 64fd4daa1d Display images automatically only if they are not assigned to variable 2016-04-27 17:52:38 +03:00
Matti Pastell 506f48f4dd Fix parsing: parse variables and not just expresssions 2016-04-27 17:30:33 +03:00
Matti Pastell 31392a067f Displaying and collecting rich results implemented 2016-04-27 17:14:42 +03:00
Matti Pastell da5001bd31 Set mimetypes based on document format, started work on capturing 'rich' text results 2016-04-27 16:05:11 +03:00
Matti Pastell 45f8871740 Generic svg and png handlers work 2016-04-27 15:10:26 +03:00
Matti Pastell 37f0c7f796 Added more general display methods for png and svg, gadfly modified to catch svg's 2016-04-27 14:51:15 +03:00
Matti Pastell f24b2157a6 First version with Plots.jl support, need to decide how to display figures 2016-04-27 10:18:06 +03:00
Matti Pastell 121ace9ec3 Fix a bug in out_path for Pandoc formats, tweak doctype autodetection 2016-04-24 16:12:30 +03:00
= 13670b1620 Allow out_path to be file or directory 2016-04-24 15:02:03 +03:00
= 01a235fd88 Fix to deserialing cached content. Caching now works as previously documented and tests pass 2016-04-23 19:19:38 +03:00
= 6ef016cc5f Mostly fixed caching, echo=false needs fixing. Switched to JLD format. 2016-04-23 18:15:59 +03:00
Matti Pastell 8292c17674 Implement autodetecting output format 2016-04-22 16:16:12 +03:00
Matti Pastell 42faaae5de Detect informat based on file extension 2016-04-22 15:39:25 +03:00
Matti Pastell 54a9a79e98 Changed readall to @compat readstring 2016-04-20 21:01:14 +03:00
Matti Pastell 6bec8f19ea Fix output for paths containing ~ 2016-04-20 13:18:12 +03:00
Matti Pastell a1de2c64e2 Added setting and restoring chunk options 2016-04-20 11:16:50 +03:00
Matti Pastell f7e18f45a3 Removed unsused code 2016-04-19 17:36:56 +03:00
Matti Pastell 54663179cb Add test and docs for hold chunk option 2016-04-19 17:07:07 +03:00
Matti Pastell 526646bb79 Add hold option for chunks 2016-04-19 16:39:10 +03:00
Matti Pastell f50c94d0ed First version of documentation with Documenter.jl and mkdocs. Remove Docile depency 2016-04-19 16:10:10 +03:00
Matti Pastell 8a35d741f6 Fixed output format and tests for PyPlot 2016-04-12 17:08:29 +03:00
= 6ab22417bf Gadfly tests pass 2016-04-11 22:16:29 +03:00
= 4fb521e219 Fixes to saving in pyplot, needs testing 2016-04-11 22:08:41 +03:00
= 0254a78e27 Fixed Gadfly tests 2016-04-11 21:23:15 +03:00
= 5dc7be69a9 Fix tuples for 0.4 2016-04-11 19:13:00 +03:00
= 0e44f9683c Make string AbstractStrings 2016-04-11 18:47:23 +03:00
= 178c295605 Change plotlib paramater 2016-04-11 18:29:19 +03:00
Matti Pastell 97fe1a43bd Capturing output now works with new options. Needs new tests and need to clean up obsolete code. Caching is broken 2015-01-11 23:38:58 +02:00
Matti Pastell 7ed8638658 Capturing output for 'script' chunks implemented, everything else is broken 2015-01-11 01:20:28 +02:00
Matti Pastell abb21a6d80 Working to improve capturing output, added functions to parse and capture chunk content. 2015-01-10 20:10:40 +02:00
Art Wild 3a9388d063 Clear only what can be cleared (vars) and disregard the rest (funcs and variables that cannot be defined) 2015-01-09 09:48:58 -05:00
Matti Pastell c2f76c7190 Added shortcut method for weave, cleaned obsolete code 2015-01-09 00:05:46 +02:00
Matti Pastell 00660a6332 Fix to caching, extended Gadfly with PGF example 2015-01-08 23:45:26 +02:00
Matti Pastell c5d91dd6c7 Removed unused code, tweaked test 2015-01-08 19:35:59 +02:00
Matti Pastell d19b374fe9 Implemented caching, added documentation and tests 2015-01-08 18:52:42 +02:00
Matti Pastell 6635eb5c74 Working on caching. Saving and restoring added, problems with formatting 2015-01-07 16:37:02 +02:00
Matti Pastell ee262e81a4 Fix: Documents run code in separate SandBoxes. Each document is executed in separate sandbox module instead of redefining the same one. Fixes warnings and occasional segfaults. 2015-01-07 12:22:32 +02:00
Matti Pastell 91914d675a Moved pyplot code to separate file, made Winston tests to run in separate process 2015-01-07 10:26:11 +02:00
Matti Pastell 5d1f5ab4d7 Refactoring to cleaner API. Added WeaveDoc type.
Reading and running chunks now return WeaveDoc's.
Cleaned weave function significantly.
2015-01-07 00:01:25 +02:00
Matti Pastell e76e823a3d Made report object local, closes #3 2015-01-06 00:56:47 +02:00
Matti Pastell 25fb2096d3 Figure saving and formatting fixed, updated unit tests 2015-01-05 16:35:24 +02:00