Skip to content

Instantly share code, notes, and snippets.

@greglandrum
Created January 14, 2019 13:43
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 5 You must be signed in to fork a gist
  • Save greglandrum/d721822e8973ff8438cf2af283c9271e to your computer and use it in GitHub Desktop.
Save greglandrum/d721822e8973ff8438cf2af283c9271e to your computer and use it in GitHub Desktop.
KNIME from Jupyter_demo.ipynb
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mbezy
Copy link

mbezy commented Feb 12, 2019

Hi, thanks for sharing the code!
One question: if there are several container input in the Knime workflow, how can one know in which order to provide the inputs in the Python code (using the "data_table_inputs" function)?
Thank you!

@maxime-beck
Copy link

This is very useful thank you!
In terms of execution time, would there be any optimization possible? It's quite long to execute even the smallest workflow (8 seconds to create and sort 4 cells). I would assume most of this time is used to load the workflow?

@greglandrum
Copy link
Author

@maxime-beck : because this needs to launch a KNIME Analytics Platform instance each time you run a workflow, it's always going to take a while. I find it most useful when combined with workflows that already take a long time to execute.

If you're a KNIME Server customer: there will be an updated version of the package soon that can take advantage of a KNIME Server to execute the workflows. This will allow a much lower latency than we get when using things locally.

@maxime-beck
Copy link

@greglandrum I see that the library is invoking the KNIME Batch Application but that CLI doesn't provide a way to just start an instance and keep it running. Is there any plan to add that feature to the Batch Application anytime soon? That would greatly improve the performances of the Jupyter integration.

@nguyenduydu
Copy link

@mbezy: I have the same question. Have you found the answer yet?

@arddashti
Copy link

Hi, thanks for sharing the code!
This is very very useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment