Hi @hagay_finiti,
The Python view is not the same as a notebook. The view must be a self-contained HTML file. I am not familiar with the library but it seems to make use of some additional JS code that is not available in the HTML that you output to knext.view. The shap.initjs() probably injects that into the current DOM in the notebook (or something similar).
Maybe there is a method to export the view as a self-contained HTML. Otherwise, you have to add the JavaScript library to the HTML manually.