Icon

conda_environment_kaggle

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 -n kaggle -c conda-forge pycountry 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 # update conda and pip # conda update conda # pip install --upgrade pip # update conda package in the base environment: # conda update -n base -c conda-forge conda # update all packages in environment # conda update -n kaggle -c conda-forge --update-all # 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-50/Examples/Python - Extract the current standard Python YAML files curated by KNIME from the installation folder/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-50/Examples/Python - Extract the current standard Python YAML files curated by KNIME from the installation folder/data/kaggle.yml" --prune # conda env update -n kaggle --file="/Users/m_lauber/Dropbox/knime-workspace-50/Examples/Python - Extract the current standard Python YAML files curated by KNIME from the installation folder/data/kaggle.yml" # 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 install -c conda-forge miceforest # conda update -n base -c conda-forge --update-all # conda update -n base -c conda-forge conda # conda update -n kaggle --all name: kaggle channels: - conda-forge - knime # - h2oai dependencies: # === Core & KNIME integration ================================================= - python # Python interpreter (pin optional: =3.9) - knime-python-base<=5.10 # KNIME Python integration runtime (>=5.3.0) - py4j # Java–Python bridge used by KNIME - nodejs # Required by parts of JupyterLab extensions - pip # Python package installer (enables the pip: section) # === Jupyter ecosystem ======================================================== - jupyterlab # Next-gen web UI for notebooks - jupyter # Classic Jupyter Notebook - jupyter_contrib_nbextensions # Community extensions for classic notebooks - jupyter_nbextensions_configurator # UI to manage notebook extensions - jupytext # Sync notebooks with .py/.md text files - jupyterlab-snippets # Snippets menu in JupyterLab - jupyterlab-git # Git integration in JupyterLab # - jupyterlab_execute_time # Show cell execution time in JupyterLab # - theme-darcula # Darcula theme for JupyterLab - nbconvert # Convert notebooks to HTML/PDF - nbformat # Notebook file format support - widgetsnbextension # Frontend support for ipywidgets - ipywidgets # Interactive widgets in notebooks - qtconsole # Jupyter Qt console - qtconsole-base # Jupyter Qt console # === Numerical computing & scientific stack ================================== # - mkl # Intel Math Kernel Library (BLAS/LAPACK) - numpy # Fundamental n-dimensional arrays - scipy # Scientific computing (stats, signal, optimize) - numexpr # Fast numerical expression evaluator - h5py # HDF5 read/write for large numerical data - pytables # PyTables: HDF5 with table/query support - gzip # Gzip compression utilities (package form) - numba # NumPy-aware JIT compiler (LLVM-based for speed) # === DataFrames & profiling =================================================== - pandas>=1.4 # DataFrames & data wrangling - pandas-profiling # Automated EDA reports (now ydata-profiling) - sweetviz # Quick dataset comparison/EDA reports - phik # Phi_K correlation for mixed data - featuretools # Automated feature engineering # === Serialization, formats & I/O ============================================ - pyarrow>=9.0 # Arrow/Parquet; in-memory columnar data - fastparquet # Alternative Parquet engine - openpyxl # Read/write Excel .xlsx - xlrd # Read legacy Excel .xls - xlwt # Write legacy Excel .xls # Pyexcel collection: - pyexcel # Unified Excel I/O API - pyexcel-io # I/O plugin base for pyexcel - pyexcel-xls # .xls support for pyexcel - pyexcel-xlsx # .xlsx support for pyexcel - pyexcel-ods3 # .ods support for pyexcel - odfpy # Low-level OpenDocument support - liac-arff # Read/write Weka ARFF files - tabula-py # Extract tables from PDFs into DataFrames - chardet # Character encoding detection (helpful on macOS) - arrow # Friendly date/time handling (Python library) - pendulum # Advanced datetime handling (timezones, parsing) - cairo # 2D graphics (PDF/SVG/PNG) rendering - libutf8proc # UTF-8 processing library (dep for text tools) - pooch # Data file downloader/cacher for scientific packages # === Machine learning & optimization ========================================= # - scikit-learn-intelex # Speedups for sklearn on Intel (keep commented) - scikit-learn # General ML toolkit - scikit-optimize # Sequential model-based (Bayesian) optimization - xgboost # Gradient boosting (C++/CPU/GPU) - py-xgboost # Python wrapper meta-package (keep alongside) - lightgbm=4.5.0 # Fast histogram-based gradient boosting - miceforest # Missing value imputation via random forests - hyperopt # Distributed Asynchronous Hyper-parameter Optimization # - h2o # H2O.ai ML platform (conda variant; keep commented) # === Parallelism & distributed =============================================== - dask # Parallel arrays/dataframes/task scheduling - distributed # Dask distributed scheduler - greenlet # Lightweight micro-threads (stack switching) # === Graphs, astronomy & domain libs ========================================= - networkx # Graph analysis and network algorithms - astropy # Astronomy utilities & FITS I/O # === Visualization ============================================================ - matplotlib # Core plotting library - seaborn # Statistical plotting on top of matplotlib - bokeh # Interactive web-based visualizations - plotly # Interactive visualizations & dashboards (JS-based) # - flask # Minimal web server (keep commented; sometimes needed) # === Utility & plumbing ======================================================= - gettext # i18n/l10n message utilities - fonts-conda-forge # Font meta-package for plotting/export - qtpy # Qt abstraction layer (backend for GUIs/plots) - pathlib2 # Backport of pathlib (older Py compat) - contextlib2 # Backport/extra context managers - cached-property # Cached computed attributes - termcolor # Colored terminal output - colorlog # Colorized logging - croniter # Cron expression iterator (scheduling helpers) - pluggy # Plugin system foundation (pytest et al.) - exceptiongroup # Backport of ExceptionGroup for older Py - execnet # Exec across Python interpreters/machines - backports # Meta for Python backported features # - cytools # (Likely) Cython/C utils dependency bucket - visions # Data typing/inference (used by profiling libs) - tangled-up-in-unicode # Unicode database helpers - pyodbc # DB API Module for ODBC # - distro # OS distribution info # - pydantic # Data validation models # - iniconfig # .ini config parser # - lml # 'Load me later' plugin loader # - pickle # Serialization (stdlib; kept commented as note) # - lzma # Compression (stdlib; kept commented as note) # === Testing ================================================================= - pytest # Testing framework # === PIP-only packages ======================================================== - pip: - JPype1 # Call Java from Python (JNI) - JayDeBeApi # JDBC DB access from Python (via Java) - missingno # Visualize/diagnose missing values # - auto-sklearn # AutoML on top of scikit-learn - aquirdturtle_collapsible_headings # Collapsible headings (classic NB) - jupyterlab-code-snippets # Taggable code snippets for JupyterLab - dagster # Data/ML workflow orchestration - dagit # Web UI for Dagster # - tabulate # Pretty ASCII tables - future # Py2/3 compatibility utilities # - autoxgb # Auto-XGBoost helpers - orc # Apache ORC columnar format bindings - vtreat # Data prep/encoding for ML - impyute # Imputation utilities - tables # PyTables via pip (alt install path) - texttable # Simple ASCII tables # - missingpy # Alternative missing-data utilities - h2o>=3.38 # H2O.ai ML platform (pip variant) - openpyxl_image_loader
  • conda.environment java.home
  • conda.environment "Kaggle" Windows
  • conda.environment "Kaggle" 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

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

This node has no output ports

Nodes

Extensions

Links