conda_knime_spark

Python Conda environment propagation - depending on your operating system Windows or macOS (Apple Silicon)

Please read this article for more details:


KNIME and Python — Setting up and managing Conda environments
https://medium.com/p/2ac217792539

Annotations and comments
  • # file: py3_knime_spark.yml with some modifications # KNIME and Python - Setting up and managing Conda environments # https://medium.com/p/2ac217792539 # conda update -n base -c conda-forge --all # conda env remove --name py3_knime_spark # conda update -n py3_knime_spark --all # conda env create -f="/Users/m_lauber/Dropbox/knime-workspace/hub/kn_example_python_read_orc_file/script/py3_knime_spark.yml" # conda env update -n py3_knime_spark --file="/Users/m_lauber/Dropbox/knime-workspace/hub/kn_example_python_read_orc_file/script/py3_knime_spark.yml" # conda env create -f="C:\\Users\\x123456\\knime-workspace\\hub\\kn_example_python_read_orc_file\\data\\script\\py3_knime_spark.yml" # conda env update -n py3_knime_spark --file="C:\\Users\\x123456\\knime-workspace\\hub\\kn_example_python_read_orc_file\\data\\script\\py3_knime_spark.yml" # conda remove -n py3_knime_spark pyarrow # conda install -n py3_knime_spark -c conda-forge pyarrow>=0.13.0 # pip install pyarrow==0.13.0 # conda update -n py3_knime_spark --update-all # conda list -n py3_knime_spark -f opencv --json # conda activate py3_knime_spark # conda update -n base -c conda-forge conda name: py3_knime_spark # Name of the created environment channels: # Repositories to search for packages - conda-forge - knime # conda search knime-python-base -c knime --info # to see what is in the package dependencies: # List of packages that should be installed - python=3.9 # Python - knime-python-base # <=4.7.8 # Dependencies of KNIME - Python integration # - knime-python-scripting # Everything you need to also build Python packages for KNIME - cairo # SVG support - pillow # Image inputs/outputs - matplotlib # Plotting - IPython # Notebook support - nbformat # Notebook support - scipy # Scientific computing - jpype1 # A Python to Java bridge # Jupyter Notebook support - jupyter # Jupyter Notebook - pyspark # Spark installation # - pyarrow - pip # Python installer - pip: - findspark - pyarrow # - JPype1 # Databases
  • if (equals(column("os.name"), "Mac OS X") ) {"0"} else if (contains(lowerCase(column("os.name")),"mac" )) {"0"} else {"1"}
  • conda.environment java.home
  • conda.environment "py3_knime_spark" Windows
  • conda.environment "py3_knime_spark" MacOSX Apple Scilicon
  • osgi.syspath => find where the KNIME installtion is located on Windows or MacOSX also java.home
  • $$ROWID$$ = "java.home" => TRUE
  • var_environment_validation
  • java.home

Options

handle the Conda environment
how to handle your conda environment%%00010name = just check the names of packages name%%00010name_packages = also check the versions of packages%%00010overwrite = !!! always overwrite the environment

Input Ports

This node has no input ports

Output Ports

Icon
Flow Variable to propagate the conda.environment

Nodes

Extensions

Links