Skip to Main Content
Spotfire Ideas Portal
Status Implemented
Product Spotfire
Categories Installation
Created by Guest
Created on Apr 23, 2020

Python data function: Add support to use Conda/virtual environments

Sometimes we need use conda environment since not all PyPI packages can be installed via pip which is supported by Spotfire Python tools.

It is appreciated that Python data function supports Python executable of a conda environment. We would need to issue an "activate ENV" command to preconfigure the Python engine.

Implemented in 14.0
  • ADMIN RESPONSE
    Nov 7, 2023

    Hi,

    I'm happy to announce that you can now deploy and use your preferred Python distribution with the Spotfire Service for Python. in Spotfire 14.0 LTS.

    For more details see the What's new in 14.0 page.

    For a complete description of all new features, changes in functionality and how customers can upgrade/migrate to this version, see release notes and product documentation.

    Thanks!!!

  • Attach files
  • Admin
    Niklas Amberntsson
    Reply
    |
    May 12, 2020

    Thanks, that is now clear to me. I will make a slight update to the idea description.

  • Guest
    Reply
    |
    May 12, 2020

    Hi Niklas,

    Conda has several Python environments. To launch Python engine, user need to activate one conda environment (by running a batch file to set environment) before hand.

    Spotfire 10.8 does support to specify an external Python engine. But we also need another optional command to preconfigure Python engine.

    BTW, I confirmed with TIBCO support , this option is not available from current version of Spotfire. *Case number: 01860445.

  • Admin
    Niklas Amberntsson
    Reply
    |
    May 12, 2020

    Hello Junhong, thank you for contributing your idea.

    Note that you are able to specify an external python interpreter in tools/options/Data functions.

    If you select the option "use specific python.exe:" you can point to the python interpreter you need. Please note that you need to make sure the external python interpreter has all packages required by spotfire, as outlined in https://docs.tibco.com/pub/sfire-analyst/10.9.0/doc/pdf/TIB_sfire-analyst_python-packages.pdf?id=4&_ga=2.147642175.947333806.1589169966-2056170994.1464071006

    Does this solve your issue?