Skip to content

Graphics in the new notebook output #116

@jlperla

Description

@jlperla

This is low priority for me (as I can live without graphics in the notebook), but wanted to post it

Using the new notebook function, I tested it on the https://github.com/mpastell/Weave.jl/blob/master/examples/FIR_design.jl example.

Calling the FIR_design.jl on its own works correctly on my computer.

When called notebook("FIR_design.jl") on it, everything seems to work, except the Gadfly plot output. If you look at the .ipynb, the output of that cell has a huge amount of xml, starting with

 "outputs": [
    {
     "data": {
      "image/svg+xml": [
       "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n",
     "<svg xmlns=\"http://www.w3.org/2000/svg\"\n",
       "     xmlns:xlink=\"http://www.w3.org/1999/xlink\"\n",
       "     xmlns:gadfly=\"http://www.gadflyjl.org/ns\"\n",
       "     version=\"1.2\"\n",
       "     width=\"141.42mm\" height=\"100mm\" viewBox=\"0 0 141.42 100\"\n",

See the full notebook here:
FIR_design.ipynb.txt

If you open the notebook, it shows some text instead of the image, but if you <Control-Enter>, it correctly plots the image (so this hasn't broken the underlying code).

As I said, no rush fixing this sort of stuff for me, but when the feature is more formally tested I hope this issue is useful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions