conda_environment_kaggle_macosx

KNIME and Python — Setting up and managing Conda environments
https://medium.com/@mlxl/knime-and-python-setting-up-and-managing-conda-environments-2ac217792539

Propagate a curated Python environment "kaggle" for KNIME with several important packages.
Like for example: h2o, arrow, XGBoost

You will need a working Miniforge (or Miniconda) environment set up to be used in KNIME
https://docs.knime.com/latest/python_installation_guide/index.html#_introduction
https://docs.conda.io/en/latest/miniconda.html
https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html


(official) KNIME Python Integration Guide
https://docs.knime.com/latest/python_installation_guide/index.html#_introduction

Meta Collection about KNIME and Python
https://hub.knime.com/mlauber71/spaces/Public/latest/_knime_and_python_meta_collection~AvjrddXKOIoZYLV3

Annotations and comments
  • Propagate a curated Python 3.9 environment "kaggle" for KNIME with several important packages. Like for example: h2o, arrow, XGBoost conda env update -n kaggle --file="/Users/m_lauber/Dropbox/knime-workspace/hub/kn_example_python_yaml_files_conda/data/kaggle.yml" conda update -n kaggle --all conda install -c conda-forge pyarrow=9.0 conda remove -n kaggle pyarrow conda install -c conda-forge pandas=1.4 # check version for a single package conda list -n kaggle -f pyarrow --json conda list -n kaggle -f h2o --json conda install -c h2oai h2o=3.38 conda install -c conda-forge xgboost conda install -c conda-forge jupyterlab # list packages in the enironment conda list -n kaggle # remove a single package conda remove -n kaggle jupyterlab_execute_time You will need a working Miniforge (or Anaconda) environment set up to be used in KNIME https://github.com/conda-forge/miniforge#download https://docs.knime.com/latest/python_installation_guide/index.html#_introduction https://docs.conda.io/en/latest/miniconda.html https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html (official) KNIME Python Integration Guide https://docs.knime.com/latest/python_installation_guide/index.html#_introduction Meta Collection about KNIME and Python https://hub.knime.com/mlauber71/spaces/Public/latest/_knime_and_python_meta_collection~AvjrddXKOIoZYLV3
  • # The sub-folder /data/ conatins a "kaggle.yml" file to create the Python environment if it would not be installed automaticall by the Conda Environment Propagation. # KNIME official Python integration guide # https://docs.knime.com/latest/python_installation_guide/index.html#_introduction # Meta collection about KNIME and Python # https://kni.me/w/AvjrddXKOIoZYLV3 # use Miniconda and install a basic version (https://docs.conda.io/en/latest/miniconda.html) # Manage Conda environments: # https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html # remnove an entire environment # conda remove --name kaggle --all # KNIME Python Integration - envconfigs # overview of KNIME conda environment configurations (where this YAML file has been adapted from): # https://forum.knime.com/t/an-error-occured-during-training-of-the-keras-deep-learning-network-when-using-knime/38581/15?u=mlauber71 # create a conda environment from scratch with this curated yaml file for MacOSX systems - you might have to adapt the path :-) # conda env create -f="/Users/m_lauber/Dropbox/knime-workspace/hub/kn_example_python_yaml_files_conda/data/kaggle.yml" # conda activate kaggle # update packages that were not in the environment or should be removed # conda env update -n kaggle --file="C:\\Users\\x123456789\\knime-workspace\\hub\\kn_example_python_yaml_files_conda\\data\\kaggle.yml" --prune # conda env update -n kaggle --file="/Users/m_lauber/Dropbox/knime-workspace/hub/kn_example_python_yaml_files_conda/data/kaggle.yml" --prune # update all packages in environment # conda update -n kaggle --update-all # conda config --get channels # conda deactivate # conda env list # start jupyter notebook (https://jupyter-notebook-beginner-guide.readthedocs.io/en/latest/execute.html) # kaggle>jupyter notebook # KNIME and Deep Learning integration # https://forum.knime.com/t/an-error-occured-during-training-of-the-keras-deep-learning-network-when-using-knime/38581/7?u=mlauber71 # overview of KNIME conda environment configurations (where this YAML file has been adapted from): # remove a single package # conda remove -n kaggle jupyterlab_execute_time # conda install -c h2oai h2o=3.38.0.2 # conda install -c conda-forge pyarrow=9 # conda update -n kaggle --all name: kaggle channels: - conda-forge # - h2oai dependencies: - pip # for pip dependencies # Python - python=3.9 - py4j # necessary for KNIME ineraction - nodejs - nbconvert - widgetsnbextension # - mkl # Math library for Intel and compatible processors - pyarrow>=9.0 # Arrow serialization - fastparquet # alternative parquet format - nbformat # Notebook support - scipy # Notebook support # Python - numpy - pandas>=1.4 - scikit-learn-intelex # Intel extension for performance boost of sklearn - scikit-learn # Machine Learning # - h2o # Jupyter (notebook support) - jupyterlab - jupyter # Jupyter Notebook - jupyter_contrib_nbextensions # Jupyter notebook extension - jupyter_nbextensions_configurator # UI for Jupyter notebook extension management # Jupyter Lab - jupytext # - jupyterlab_execute_time # show execution time in JupyterLab - jupyterlab-snippets # Snippets Menu in JupyterLab - jupyterlab-git # Git Support in JupyterLab # - theme-darcula # Darcula Theme for JupyterLab - xgboost - lightgbm - py-xgboost - featuretools # feature generator - miceforest # Missing value replacement # Visualization - matplotlib - seaborn - bokeh # - flask # Web Server - ipywidgets # Interactive Jupyter widgets - openpyxl # Excel Reader - xlrd # Library for developers to extract data from Microsoft Excel (tm) spreadsheet files - xlwt # Writing data and formatting information to Excel files # Pyexcel collection - pyexcel - pyexcel-io - pyexcel-xls - pyexcel-xlsx - pyexcel-ods3 - pytest - pytables - tabula-py # extract table from PDF into pandas DataFrame - termcolor - odfpy # OpenDocument support # conda install -c conda-forge liac-arff - liac-arff # read and write ARFF files - pandas-profiling # Data report for exploration - arrow # advanced date and time formats - numexpr - sweetviz # Report overview over data - chardet # MacOS - exceptiongroup - execnet - networkx # Python package for creating and manipulating complex networks - h5py # HDF5 lets you store huge amounts of numerical data - pathlib2 - phik # Phi_K is a new and practical correlation coefficient - pywavelets # Discrete Wavelet Transforms in Python - pluggy - contextlib2 # Updated utilities for context management - cached-property - tangled-up-in-unicode # Access to the Unicode Character Database (UCD) - visions # Visions provides an extensible suite of tools to support common data analysis operations # - distro # - pydantic # - iniconfig # - lml # load me later - pip: - JPype1 # Databases - JayDeBeApi # Java and Python - missingno # Missing Value analysis # - auto-sklearn - aquirdturtle_collapsible_headings # JupyterLab collapsible Headings - jupyterlab-code-snippets # JupyterLab Snippets with Tags - dagster # Workflow Orchestration - dagit # WebUI Dagster # - tabulate # - future # - autoxgb # auto XGB - orc - vtreat - impyute - tables - texttable # Python module to create simple ASCII tables # - missingpy - h2o>=3.38
  • START
  • STOP
  • conda.environment "Kaggle" MacOSX
  • var_environment_validation

Options

handle the Conda environment "kaggle"
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 "knime_r_environment" environment

Input Ports

This node has no input ports

Output Ports

Icon
Flow Variable containing the Conda environment for KNIME and R

Nodes

Extensions

Links