New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Complete rewrite of IPython Notebook documentation: docs/source/interactive/htmlnotebook.txt #3705
Conversation
… capitalization. Added info on different cell types and sketch of plotting
… inside the Notebook, but that this is the same as the content of the .ipynb file
…ting' to 'saving' and moved to Basic workflow. Renamed 'basic concepts' to 'user interface'.
…ussion of why the same word 'notebook' is used both for the notebook space and the corresponding notebook document
There are a few minor formatting issues, but the text is really excellent, great work! Do you want to finish up cleaning the formatting before we merge? |
|
||
%pylab inline | ||
|
||
These instead capture the output of the plot and display it *inline* within |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
instead
@dpsanders: finally, I finished reading through your PR. I really like it! A basic, but fundamental, issue is the splitting of the content into several individual parts. You have already mentioned that. In this context it is IMO important to decide which significance the Notebook App will get within the whole IPython world. If it will be the number one feature everybody is advised to use, than "all" of the IPython features could be introduced based on their Notebook appearance. If it is "just" one of several frontends, it might be a bit trickier to split the information into general parts (related to all IPython products) and frontend specific. In the latter case, the current PR might need some excessive rework. |
These instead capture the output of the plot and display it *inline* within | ||
the notebook format, below the input cell that produced it. The resulting | ||
plots will then also be stored in the notebook document. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we add the config option to use SVG instead of PNG?
%config InlineBackend.figure_format = 'svg'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
%pylab
should be excluded from this doc.
@jakobgager Many thanks for your great effort! I think it is actually probably harder to review docs than to write them: Here it is the same, you have to work out what they had in their head, what they actually wrote down, and then how to bridge the enormous chasm between the two ;) Let me take a break from this today and make the changes tomorrow. Thanks again and looking forward to the next one! Or maybe it's your turn to write and mine to parse... |
Thanks to both of your for the review - let's get the mechanical issues resolved here, and get it merged. We can discuss reorganization later. |
Wow! I haven't read this yet @dpsanders, but it looks like a lot of great work! |
Thanks! but do reserve judgment until after you've read it :P On Sun, Jul 21, 2013 at 12:16 AM, Jonathan Frederic <
Dr. David P. Sanders Profesor Titular "A" / Associate Professor dpsanders@gmail.com Cubículo / office: #414, 4o. piso del Depto. de Física Tel.: +52 55 5622 4965 |
I have made a branch called notebook-docs-rendered; if you clone it, you should hopefully be able to see the version of the docs rendered by sphinx. Let me know if there's any problem (missing CSS and all that jazz). I will go over @jakobgager 's great list of corrections tomorrow and add a commit. However... I have just had a revelation. And not of the good kind. This is a document about the IPython Notebook. Should the documentation not be written in the form of... an IPython notebook? [Note the capitalization ;) ] Actually, due to the nature of the text, it's not so clear to me. Thoughts? Obviously this would be for after the PR in any case, and sphinx does a very nice job of rendering the HTML. In fact, is there an easy way of incorporating output of nbconvert into the sphinx workflow? |
Yes, eventually. Not at this point. We plan to write all of our narrative docs in notebooks, but simple reference docs still belong in plain sphinx. As time goes on, we expect docs written for sphinx to shrink, and notebook docs to grow. However, part of that is actually sphinx exporters for nbconvert, so that we can write notebooks that actually get rendered along with everything else in the sphinx build.
Not yet, that's one of the things we will be working on. NbConvert has to finish existing first. |
|
||
* Display rich data (png/html/latex/svg) in the browser as a result of | ||
computations. | ||
* Compose text cells using HTML and Markdown. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/text cells/rich text/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you are looking at an older version?
:-) |
…w. Also minor editing for clarity. Ready to be merged.
@jakobgager I have implemented all of your corrections, except the one giving LaTeX installation instructions, and Ready to merge. |
Thanks, I'll go ahead and merge and cut the alpha when I get home this afternoon. |
Great to hear! Looking forward to the new docs! |
Complete rewrite of IPython Notebook documentation: docs/source/interactive/htmlnotebook.txt
Complete rewrite of IPython Notebook documentation: docs/source/interactive/htmlnotebook.txt
This is a complete rewrite of the main entry point to the documentation of the IPython Notebook.
It takes as a base the previous version and turns it into a comprehensive narrative description of the parts and operation of the IPython Notebook 1.0. The necessity of a narrative description was pointed out by @Carreau.
@Carreau also pointed out, in a blog post, that there is a great deal of nomenclatural confusion, since the word "notebook" is used to refer variously to (using the more specific terms that I have introduced in the documentation in this Pull Request):
I have tried very hard to keep all this straight in the documentation. In particular, I always refer to the (IPython) Notebook app with capital 'N', and notebook document files or notebooks with small 'n'. I suggest that this is a simple typographic convenience which goes a long way to disambiguating things. It also has the subtle property of treating the Notebook as a proper noun, i.e. as a living thing ;)
I have tried to keep the informal "you can do this" style from the original document, but sometimes I reverted back to the "this can be done" style -- something to watch out for when reading over it, so we can uniformize the more informal style.
The style of the documentation is to introduce new terms by putting their names in italics, like this, with an informal description first, followed by a more detailed discussion.
Currently the documentation is a monolithic enormous file with too little structure, designed as a drop-in replacement for the previous file in order to have the text written and worry about formatting later.
In reality, this page obviously needs to be split up into several sub-pages, together with figures illustrating what is being discussed, cross-references, web links to the tools mentioned, etc, but perhaps it makes sense to do this after the monolithic version is merged for better atomicity.
A basic division should be made between a basic discussion for users, probably avoiding much mention of servers and kernels in particular, and a more advanced discussion containing all the details of those parts. I am unable to write that part due to my lack of knowledge, but am happy to review it for style, grammar, etc. But we definitely do need a detailed explanation of the kernel--server model, ZeroMQ, tornado, etc., as part of the documentation for IPython Notebook 1.0
Please let me have your frank comments on this PR.