File tree Expand file tree Collapse file tree
extension/example-notebooks Expand file tree Collapse file tree Original file line number Diff line number Diff line change 165165 "metadata": {},
166166 "outputs": []
167167 },
168+ {
169+ "type": "markdown",
170+ "content": [
171+ "Or you can just call a function and it the result will be printed out:"
172+ ],
173+ "metadata": {},
174+ "outputs": []
175+ },
176+ {
177+ "type": "code",
178+ "content": [
179+ "findgen(10)"
180+ ],
181+ "metadata": {},
182+ "outputs": []
183+ },
168184 {
169185 "type": "markdown",
170186 "content": [
271287 "metadata": {},
272288 "outputs": []
273289 },
290+ {
291+ "type": "markdown",
292+ "content": [
293+ "You can also mix-and-match routines with implied printing. Let's revisit our example cell that defined the function `foo`."
294+ ],
295+ "metadata": {},
296+ "outputs": []
297+ },
298+ {
299+ "type": "code",
300+ "content": [
301+ "function foo2",
302+ " compile_opt idl2",
303+ " return, 'I told you it wasn''t that simple! But it''s also not rocket science.'",
304+ "end",
305+ "",
306+ "foo2()"
307+ ],
308+ "metadata": {},
309+ "outputs": []
310+ },
274311 {
275312 "type": "markdown",
276313 "content": [
You can’t perform that action at this time.
0 commit comments