Can someone explain why this notebook [RANGEWORKING.nb]
Notebook[{
Cell[
BoxData[
RowBox[{"Range", "[", RowBox[{"0", ",", "\n", "3"}], "]"}]
],"Input"
]
}]
allows me execute the input cell in Mathematica Desktop while this notebook [RANGEBROKEN.nb]
Notebook[{
Cell[
BoxData[
RowBox[{"Range[0,","\n","3]"}]
],"Input"
]
}]
does not allow me to execute the input cell in Mathematica Desktop? I am opening these notebooks in Version 10.
The reason I am asking this is because I encountered this issue when I downloaded a file created in the Wolfram Programming Cloud.
To create RANGEBROKEN.nb:
- Created a new file in the Wolfram Programming Cloud named RANGEBROKEN.nb
- Created a new cell by typing
Range[0,
- Hit Enter
- Typed
3]
- Downloaded the notebook and stripped some unnecessary arguments to make a minimal example.
To create RANGEWORKING.nb:
- Created a new file in Mathematica Desktop named RANGEWORKING.nb
- Created a new cell by typing
Range[0,
- Hit Enter
- Typed
3]
- Stripped some unnecessary arguments to make a minimal example.
- Replaced
\[IndentingNewLine]
with\n
You can see I went through the same process to create the content in the file in the cloud versus the desktop, but the cloud version is somehow "broken."
Notebook[{Cell[BoxData[RowBox[{"Range", "[", "0", ",", "\n", "3", "]"}]],"Input"]}]
still gives a good result, but this:Notebook[{Cell[BoxData[RowBox[{"Range[", "0", ",", "\n", "3", "]"}]],"Input"]}]
does not. The problem arises as soon as one includes the first bracket between the quotations. I do not understand, why though. $\endgroup$