DOC: use ipython in bool replace doc warning
DOC: use code block for shorter error message
Merge pull request #6412 from cpcloud/replace-bool-doc-fix

DOC: use ipython in bool replace doc warning