No, it's not a standard. It's just that it doesn't matter, and there is no real standard. In reStructuredText, you will often see that it is indented like the start of the directive name (here `ipython`), so then you have 3 spaces. But I personally like to use 4 spaces as this is much more convenient to type with tab.