Paste a string as a variable, not as executable code snippet, into IPython
%paste strvar
gives you a list of the lines from the copied text. You can do
strvar = '\n'.join(strvar)
to get the text in a single string.
%paste strvar
gives you a list of the lines from the copied text. You can do
strvar = '\n'.join(strvar)
to get the text in a single string.