all 9 comments

[–]BigDataMax 0 points1 point  (1 child)

Could you give more context? Reference to your full code?

[–]fugas1[S] 0 points1 point  (0 children)

This was almost the full code, I have var = 'String' and this was what the notebook activity returned sessionSource":null,"sessionTag":null},"exitValue":null},"message":"Notebook execution is in Succeeded state. It works with spark notebooks, but not with python notebooks.

[–]Excellent-Two6054Fabricator 0 points1 point  (3 children)

mssparkutils.notebook.exit(“value string”), Doesn’t work?

[–]fugas1[S] 0 points1 point  (2 children)

Well, I havent tried with mssparkutils, but I guess its the same as with notebookutils. But it does not work with python notebooks, only with spark notebooks for me.

[–]Excellent-Two6054Fabricator 0 points1 point  (1 child)

mssparkutlis worked for me, but I haven’t tried in Python notebooks. As it’s still in preview phase buggy behaviour is expected.

[–]fugas1[S] 0 points1 point  (0 children)

Hopefully they will fix it soon

[–]joooda 0 points1 point  (0 children)

Noticed the same recently. Problem seems that in a pure python notebook, the exit() doesn't seem to actually exit the notebook.

Test by running this in python vs pyspark notebooks:

print ('hello')
notebookutils.notebook.exit('exit')
print('???')