3

Recently I learned, that using python it is possible to generate IPython notebooks automatically. This looks like a cool feature and I would like to use it for some automatic report generation. However with julia instead of python. So is there some clean/recommended way of automatically creating IJulia notebooks using julia?

Jan Weidner
  • 569
  • 2
  • 4
  • 16

1 Answers1

1

It should be posible to do this from Julia via the PyCall package:

However I got an exception at Out [8]. I've already opened a new issue for this:

HarmonicaMuse
  • 7,633
  • 37
  • 52
  • Thanks very much for the effort! For the record, I face the same errors as you. – Jan Weidner Jul 09 '15 at 06:30
  • 1
    https://github.com/yuyichao/explore/blob/c33c4297493c930d3568c50cfcf57dcf8730abcf/julia/ijulia-generate/Generate.ipynb – yuyichao Jul 09 '15 at 14:06
  • @yuyichao, thanks, but does not work for me, when I run the last cell, I got the following error: PyError (:PyImport_ImportModule) ImportError('No module named builtins',) – Jan Weidner Jul 10 '15 at 08:57
  • 2
    Forgot to mention that this is on python3. The import of builtins is just to get the python `open` function. `@pyimport __builtin__` should probably work. – yuyichao Jul 10 '15 at 23:00
  • 1
    Cool, I replaced builtin by _ _builtin__ as you suggested and now it works! – Jan Weidner Jul 13 '15 at 06:45