# Will Knime support saving or loading the model in pickle format?? I think the python script only support jython code as per documentation can someone tell me whether it will also support python code.

**URL:** <https://forum.knime.com/t/will-knime-support-saving-or-loading-the-model-in-pickle-format-i-think-the-python-script-only-support-jython-code-as-per-documentation-can-someone-tell-me-whether-it-will-also-support-python-code/13478>\
**Category:** KNIME Extensions\
**Tags:** scripting\
**Created:** [February 15, 2019, 5:19am UTC](https://forum.knime.com/t/will-knime-support-saving-or-loading-the-model-in-pickle-format-i-think-the-python-script-only-support-jython-code-as-per-documentation-can-someone-tell-me-whether-it-will-also-support-python-code/13478 "2019-02-15T05:19:00Z")\
**Posts on this page:** 1\
**Showing post:** 23

<div class="post-metadata">

**Author:** ![mlauber71](https://forum-cdn.knime.com/user_avatar/forum.knime.com/mlauber71/32/73590_2.png) [@mlauber71](https://forum.knime.com/u/mlauber71)\
**Post date:** [September 2, 2020, 9:36pm UTC](https://forum.knime.com/t/will-knime-support-saving-or-loading-the-model-in-pickle-format-i-think-the-python-script-only-support-jython-code-as-per-documentation-can-someone-tell-me-whether-it-will-also-support-python-code/13478/23 "2020-09-02T21:36:19Z")

</div>

[Pickle](https://docs.python.org/3/library/pickle.html) is not a model or data format by itself but it would ‘wrap’ a Python object and store it to be brought back later.

If you want to use models between KNIME and Python you should look for example think about using [PMML](https://forum.knime.com/t/export-pmml-that-outputs-class-probabilities/13244/2) - mostly I have used MOJO model files from H2O.ai which can easily be shared between KNIME and Python (or R) - if you use the correct MOJO version (which is not so obvious, unfortunately) - eg:

KNIME 4.1\* \<-\> H2O 3.2\* (MOJO version 1.3)  
KNIME 4.2\* \<-\> H2O 3.3\* (MOJO version 1.4)

With other model formats you would have to check if they could be used in a corresponding Python environment/package.

Which is why I like to use  
Python or R -\> H2O.ai -\> MOJO-file -\> KNIME (if you want with Sparkling Water on a Big Data cluster)

---

_[View the full topic](https://forum.knime.com/t/will-knime-support-saving-or-loading-the-model-in-pickle-format-i-think-the-python-script-only-support-jython-code-as-per-documentation-can-someone-tell-me-whether-it-will-also-support-python-code/13478)._
