On Thu, Jul 5, 2012 at 10:24 AM, Gael Varoquaux <[email protected]> wrote: > Do you have any plans to generate notebooks from enhanced valid Python > code? I would find that really handy as it would open the door to proving > notebook-like functionality without really depending on the notebook for > the development workflow.
I was about to say that, it already exists :) The following is a valid python file that can be imported as a notebook, the markup necessary as you see is fairly minimal: # -*- coding: utf-8 -*- # <nbformat>3.0</nbformat> # <headingcell level=1> # H1 # <markdowncell> # Some text # <codecell> print 'hello world' # <codecell> 2+3 ### End pasted file (this line isn't part of the file, just my comment) So if people wanted to offer notebooks from pure .py files, that would be possible today, as long as you're OK with having those markers in the .py sources that are edited. A plain, zero-markup python file can be loaded as a notebook, but then it's simply a single big cell with the whole file in it. cheers, f ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Scikit-learn-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
