### Install Spotfire Python Package Source: https://github.com/spotfiresoftware/spotfire-python/blob/main/README.md Installs the core Spotfire Python package using pip. This provides basic integration capabilities with Spotfire. ```shell pip install spotfire ``` -------------------------------- ### Install Spotfire Python Package with Extras Source: https://github.com/spotfiresoftware/spotfire-python/blob/main/README.md Installs the Spotfire Python package with optional extras for enhanced functionality. For example, 'spotfire[geo]' includes packages for geographic data processing. ```shell pip install "spotfire[geo]" ``` ```shell pip install "spotfire[plot]" ``` ```shell pip install "spotfire[plot-matplotlib]" ``` ```shell pip install "spotfire[plot-pil]" ``` ```shell pip install "spotfire[plot-seaborn]" ``` ```shell pip install "spotfire[dev,lint]" ``` -------------------------------- ### Python Syntax Error Example Source: https://github.com/spotfiresoftware/spotfire-python/blob/main/spotfire/test/files/data_function/syntax_error-3.13.txt Demonstrates a common Python SyntaxError, showing the specific line of code that caused the issue and the resulting error message. ```python rais TypeError('from test_syntax_error') ^ SyntaxError: invalid syntax (, line 1) ``` -------------------------------- ### Python Traceback: Script Compilation Context Source: https://github.com/spotfiresoftware/spotfire-python/blob/main/spotfire/test/files/data_function/syntax_error_b.txt Provides a Python traceback indicating the context in which a script compilation failed. It shows the use of the 'compile' function within a script execution flow. ```python Traceback (most recent call last): File "data_function.py", in _compile_script self.compiled_script = compile(self.script, self.script_filename, 'exec') ``` -------------------------------- ### Python Syntax Error: Invalid Arithmetic Source: https://github.com/spotfiresoftware/spotfire-python/blob/main/spotfire/test/files/data_function/syntax_error_b.txt Demonstrates a Python script encountering a SyntaxError due to an invalid arithmetic expression. The error highlights an unexpected token '+' following an integer. ```python if + 42 ^ SyntaxError: invalid syntax (, line 1) ``` -------------------------------- ### Python Syntax Error Example Source: https://github.com/spotfiresoftware/spotfire-python/blob/main/spotfire/test/files/data_function/syntax_error_c-3.13.txt Illustrates a Python script line containing a syntax error, specifically an invalid keyword ('whille' instead of 'while'). This error prevents the script from being compiled and executed. ```python whille x%2 == 0: ``` -------------------------------- ### Python Traceback: Script Compilation Error Source: https://github.com/spotfiresoftware/spotfire-python/blob/main/spotfire/test/files/data_function/syntax_error_b-3.13.txt Illustrates a Python traceback indicating an error during script compilation. The example shows an error occurring within the compile function, often due to invalid script syntax. ```python self.compiled_script = compile(self.script, self.script_filename, 'exec') ``` -------------------------------- ### Python Data Initialization Pattern Source: https://github.com/spotfiresoftware/spotfire-python/blob/main/spotfire/test/files/data_function/debug_log_truncate.txt Demonstrates a common pattern for initializing data structures in Python, where variables are assigned dictionaries. Each dictionary contains a single key, often representing a column or data point identifier, mapped to a list containing a numerical value. ```python num1607 = {'col_num1607_1': [1607]} num1608 = {'col_num1608_1': [1608]} num1609 = {'col_num1609_1': [1609]} num1610 = {'col_num1610_1': [1610]} num1611 = {'col_num1611_1': [1611]} num1612 = {'col_num1612_1': [1612]} num1613 = {'col_num1613_1': [1613]} num1614 = {'col_num1614_1': [1614]} num1615 = {'col_num1615_1': [1615]} num1616 = {'col_num1616_1': [1616]} num1617 = {'col_num1617_1': [1617]} num1618 = {'col_num1618_1': [1618]} num1619 = {'col_num1619_1': [1619]} num1620 = {'col_num1620_1': [1620]} num1621 = {'col_num1621_1': [1621]} num1622 = {'col_num1622_1': [1622]} num1623 = {'col_num1623_1': [1623]} num1624 = {'col_num1624_1': [1624]} num1625 = {'col_num1625_1': [1625]} num1626 = {'col_num1626_1': [1626]} num1627 = {'col_num1627_1': [1627]} num1628 = {'col_num1628_1': [1628]} num1629 = {'col_num1629_1': [1629]} num1630 = {'col_num1630_1': [1630]} num1631 = {'col_num1631_1': [1631]} num1632 = {'col_num1632_1': [1632]} num1633 = {'col_num1633_1': [1633]} num1634 = {'col_num1634_1': [1634]} num1635 = {'col_num1635_1': [1635]} num1636 = {'col_num1636_1': [1636]} num1637 = {'col_num1637_1': [1637]} num1638 = {'col_num1638_1': [1638]} num1639 = {'col_num1639_1': [1639]} num1640 = {'col_num1640_1': [1640]} num1641 = {'col_num1641_1': [1641]} num1642 = {'col_num1642_1': [1642]} num1643 = {'col_num1643_1': [1643]} num1644 = {'col_num1644_1': [1644]} num1645 = {'col_num1645_1': [1645]} num1646 = {'col_num1646_1': [1646]} num1647 = {'col_num1647_1': [1647]} num1648 = {'col_num1648_1': [1648]} num1649 = {'col_num1649_1': [1649]} num1650 = {'col_num1650_1': [1650]} num1651 = {'col_num1651_1': [1651]} num1652 = {'col_num1652_1': [1652]} num1653 = {'col_num1653_1': [1653]} num1654 = {'col_num1654_1': [1654]} num1655 = {'col_num1655_1': [1655]} num1656 = {'col_num1656_1': [1656]} num1657 = {'col_num1657_1': [1657]} num1658 = {'col_num1658_1': [1658]} num1659 = {'col_num1659_1': [1659]} num1660 = {'col_num1660_1': [1660]} num1661 = {'col_num1661_1': [1661]} num1662 = {'col_num1662_1': [1662]} num1663 = {'col_num1663_1': [1663]} num1664 = {'col_num1664_1': [1664]} num1665 = {'col_num1665_1': [1665]} num1666 = {'col_num1666_1': [1666]} num1667 = {'col_num1667_1': [1667]} num1668 = {'col_num1668_1': [1668]} num1669 = {'col_num1669_1': [1669]} num1670 = {'col_num1670_1': [1670]} num1671 = {'col_num1671_1': [1671]} num1672 = {'col_num1672_1': [1672]} num1673 = {'col_num1673_1': [1673]} num1674 = {'col_num1674_1': [1674]} num1675 = {'col_num1675_1': [1675]} num1676 = {'col_num1676_1': [1676]} num1677 = {'col_num1677_1': [1677]} num1678 = {'col_num1678_1': [1678]} num1679 = {'col_num1679_1': [1679]} num1680 = {'col_num1680_1': [1680]} num1681 = {'col_num1681_1': [1681]} num1682 = {'col_num1682_1': [1682]} num1683 = {'col_num1683_1': [1683]} num1684 = {'col_num1684_1': [1684]} num1685 = {'col_num1685_1': [1685]} num1686 = {'col_num1686_1': [1686]} num1687 = {'col_num1687_1': [1687]} num1688 = {'col_num1688_1': [1688]} num1689 = {'col_num1689_1': [1689]} num1690 = {'col_num1690_1': [1690]} num1691 = {'col_num1691_1': [1691]} num1692 = {'col_num1692_1': [1692]} num1693 = {'col_num1693_1': [1693]} num1694 = {'col_num1694_1': [1694]} num1695 = {'col_num1695_1': [1695]} num1696 = {'col_num1696_1': [1696]} num1697 = {'col_num1697_1': [1697]} num1698 = {'col_num1698_1': [1698]} num1699 = {'col_num1699_1': [1699]} num1700 = {'col_num1700_1': [1700]} num1701 = {'col_num1701_1': [1701]} num1702 = {'col_num1702_1': [1702]} num1703 = {'col_num1703_1': [1703]} num1704 = {'col_num1704_1': [1704]} num1705 = {'col_num1705_1': [1705]} num1706 = {'col_num1706_1': [1706]} num1707 = {'col_num1707_1': [1707]} num1708 = {'col_num1708_1': [1708]} num1709 = {'col_num1709_1': [1709]} num1710 = {'col_num1710_1': [1710]} num1711 = {'col_num1711_1': [1711]} num1712 = {'col_num1712_1': [1712]} num1713 = {'col_num1713_1': [1713]} num1714 = {'col_num1714_1': [1714]} num1715 = {'col_num1715_1': [1715]} num1716 = {'col_num1716_1': [1716]} num1717 = {'col_num1717_1': [1717]} num1718 = {'col_num1718_1': [1718]} num1719 = {'col_num1719_1': [1719]} num1720 = {'col_num1720_1': [1720]} num1721 = {'col_num1721_1': [1721]} num1722 = {'col_num1722_1': [1722]} num1723 = {'col_num1723_1': [1723]} num1724 = {'col_num1724_1': [1724]} num1725 = {'col_num1725_1': [1725]} num1726 = {'col_num1626_1': [1726]} num1727 = {'col_num1727_1': [1727]} num1728 = {'col_num1728_1': [1728]} num1729 = {'col_num1729_1': [1729]} num1730 = {'col_num1730_1': [1730]} num1731 = {'col_num1731_1': [1731]} num1732 = {'col_num1732_1': [1732]} num1733 = {'col_num1733_1': [1733]} num1734 = {'col_num1734_1': [1734]} num1735 = {'col_num1735_1': [1735]} num1736 = {'col_num1736_1': [1736]} num1737 = {'col_num1737_1': [1737]} num1738 = {'col_num1738_1': [1738]} num1739 = {'col_num1739_1': [1739]} num1740 = {'col_num1740_1': [1740]} num1741 = {'col_num1741_1': [1741]} num1742 = {'col_num1742_1': [1742]} num1743 = {'col_num1743_1': [1743]} num1744 = {'col_num1744_1': [1744]} ``` -------------------------------- ### Python Execution Traceback Source: https://github.com/spotfiresoftware/spotfire-python/blob/main/spotfire/test/files/data_function/syntax_error-3.13.txt Illustrates a Python traceback indicating an error during script compilation, showing the file, function, and specific line of code involved in the execution failure. ```python Traceback (most recent call last): File "data_function.py", in _compile_script self.compiled_script = compile(self.script, self.script_filename, 'exec') ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ``` -------------------------------- ### Python Script Compilation Context Source: https://github.com/spotfiresoftware/spotfire-python/blob/main/spotfire/test/files/data_function/syntax_error_b-3.10.txt Shows the Python code responsible for compiling a script, as seen in a traceback. This highlights the execution environment where errors might occur. ```python self.compiled_script = compile(self.script, self.script_filename, 'exec') ``` -------------------------------- ### Python Script Compilation Context Source: https://github.com/spotfiresoftware/spotfire-python/blob/main/spotfire/test/files/data_function/syntax_error_c-3.13.txt Shows the Python code responsible for compiling a script, as indicated by the traceback. This context helps in understanding where the syntax error was detected during the compilation phase. ```python self.compiled_script = compile(self.script, self.script_filename, 'exec') ``` -------------------------------- ### Define Numerical Columns in Python Source: https://github.com/spotfiresoftware/spotfire-python/blob/main/spotfire/test/files/data_function/debug_log_truncate.txt This snippet demonstrates the definition of numerical columns, likely for data initialization or mapping within a Python environment. Each entry assigns a dictionary containing a single key-value pair, where the key is a column identifier and the value is the corresponding numerical data. ```python num2159 = {'col_num2159_1': [2159]} num2160 = {'col_num2160_1': [2160]} num2161 = {'col_num2161_1': [2161]} num2162 = {'col_num2162_1': [2162]} num2163 = {'col_num2163_1': [2163]} ``` -------------------------------- ### Spotfire Python Script Execution: 'in1' Source: https://github.com/spotfiresoftware/spotfire-python/blob/main/spotfire/test/files/data_function/debug_log.txt This snippet represents a minimal script execution within the Spotfire Python environment. It shows the command 'in1' being processed, likely a variable reference or a simple script instruction. ```python in1 ``` -------------------------------- ### Python Script Compilation Traceback Source: https://github.com/spotfiresoftware/spotfire-python/blob/main/spotfire/test/files/data_function/indentation_error.txt Presents a typical Python traceback during script compilation. It shows the sequence of calls leading to the error, specifically highlighting the `compile` function and the resulting `IndentationError` from the script execution context. ```Python Traceback (most recent call last): File "data_function.py", in _compile_script self.compiled_script = compile(self.script, self.script_filename, 'exec') ``` -------------------------------- ### Python Traceback: Undefined Output Variable in Spotfire Data Function Source: https://github.com/spotfiresoftware/spotfire-python/blob/main/spotfire/test/files/data_function/output_not_defined-3.13.txt This snippet illustrates a typical Python traceback encountered when a Spotfire data function fails because an expected output variable was not defined or assigned a value before being referenced. It highlights the error message and the call stack leading to the failure. ```python Error executing Python script: spotfire.data_function.DataFunctionError: Output variable 'out1' was not defined Traceback (most recent call last): File "data_function.py", line 255, in evaluate self._write_outputs(result) ~~~~~~~~~~~~~~~~~~~^^^^^^^^ File "data_function.py", line 346, in _write_outputs raise DataFunctionError(f"Output variable '{output.name}' was not defined") ``` -------------------------------- ### Reference Input Table in Spotfire Script Source: https://github.com/spotfiresoftware/spotfire-python/blob/main/spotfire/test/files/data_function/debug_log_omit_1.txt This snippet demonstrates how to reference an input data table within a Spotfire Python script. The variable 'in1' is commonly used to represent the first input table provided to the script. ```python in1 ``` -------------------------------- ### Python Script Execution Error Traceback Source: https://github.com/spotfiresoftware/spotfire-python/blob/main/spotfire/test/files/data_function/exception.txt This snippet shows a typical Python traceback encountered when a script fails during execution in Spotfire. It includes the error type, the specific error message, and the call stack leading to the failure. ```Python Error executing Python script: TypeError: from test_exception Traceback (most recent call last): File "data_function.py", line 324, in _execute_script exec(compiled_script, self.globals) File "", line 1, in ``` -------------------------------- ### Python IndentationError: Unexpected Indent Source: https://github.com/spotfiresoftware/spotfire-python/blob/main/spotfire/test/files/data_function/indentation_error.txt Illustrates a Python IndentationError, specifically an 'unexpected indent'. This error arises when the Python interpreter finds an indentation level that does not conform to the expected structure, often due to inconsistent spacing or misplaced code blocks. ```Python print('You have entered an even number.') ``` -------------------------------- ### Python Syntax Error: Expected Colon Source: https://github.com/spotfiresoftware/spotfire-python/blob/main/spotfire/test/files/data_function/syntax_error_b-3.13.txt Demonstrates a common Python SyntaxError where a colon is expected at the end of a statement, such as an if condition. This error prevents script execution. ```python if + 42 ``` -------------------------------- ### Python Variable Assignment for Numerical Data Source: https://github.com/spotfiresoftware/spotfire-python/blob/main/spotfire/test/files/data_function/debug_log_truncate.txt Demonstrates the common pattern of assigning numerical data to variables, where each variable represents a specific data point or column. This structure is often used for iterating through or referencing data within Spotfire. ```python num1469 = {'col_num1469_1': [1469]} num1470 = {'col_num1470_1': [1470]} num1471 = {'col_num1471_1': [1471]} num1472 = {'col_num1472_1': [1472]} num1473 = {'col_num1473_1': [1473]} num1474 = {'col_num1474_1': [1474]} num1475 = {'col_num1475_1': [1475]} num1476 = {'col_num1476_1': [1476]} num1477 = {'col_num1477_1': [1477]} num1478 = {'col_num1478_1': [1478]} num1479 = {'col_num1479_1': [1479]} num1480 = {'col_num1480_1': [1480]} num1481 = {'col_num1481_1': [1481]} num1482 = {'col_num1482_1': [1482]} num1483 = {'col_num1483_1': [1483]} num1484 = {'col_num1484_1': [1484]} num1485 = {'col_num1485_1': [1485]} num1486 = {'col_num1486_1': [1486]} num1487 = {'col_num1487_1': [1487]} num1488 = {'col_num1488_1': [1488]} num1489 = {'col_num1489_1': [1489]} num1490 = {'col_num1490_1': [1490]} num1491 = {'col_num1491_1': [1491]} num1492 = {'col_num1492_1': [1492]} num1493 = {'col_num1493_1': [1493]} num1494 = {'col_num1494_1': [1494]} num1495 = {'col_num1495_1': [1495]} num1496 = {'col_num1496_1': [1496]} num1497 = {'col_num1497_1': [1497]} num1498 = {'col_num1498_1': [1498]} num1499 = {'col_num1499_1': [1499]} num1500 = {'col_num1500_1': [1500]} num1501 = {'col_num1501_1': [1501]} num1502 = {'col_num1502_1': [1502]} num1503 = {'col_num1503_1': [1503]} num1504 = {'col_num1504_1': [1504]} num1505 = {'col_num1505_1': [1505]} num1506 = {'col_num1506_1': [1506]} num1507 = {'col_num1507_1': [1507]} num1508 = {'col_num1508_1': [1508]} num1509 = {'col_num1509_1': [1509]} num1510 = {'col_num1510_1': [1510]} num1511 = {'col_num1511_1': [1511]} num1512 = {'col_num1512_1': [1512]} num1513 = {'col_num1513_1': [1513]} num1514 = {'col_num1514_1': [1514]} num1515 = {'col_num1515_1': [1515]} num1516 = {'col_num1516_1': [1516]} num1517 = {'col_num1517_1': [1517]} num1518 = {'col_num1518_1': [1518]} num1519 = {'col_num1519_1': [1519]} num1520 = {'col_num1520_1': [1520]} num1521 = {'col_num1521_1': [1521]} num1522 = {'col_num1522_1': [1522]} num1523 = {'col_num1523_1': [1523]} num1524 = {'col_num1524_1': [1524]} num1525 = {'col_num1525_1': [1525]} num1526 = {'col_num1526_1': [1526]} num1527 = {'col_num1527_1': [1527]} num1528 = {'col_num1528_1': [1528]} num1529 = {'col_num1529_1': [1529]} num1530 = {'col_num1530_1': [1530]} num1531 = {'col_num1531_1': [1531]} num1532 = {'col_num1532_1': [1532]} num1533 = {'col_num1533_1': [1533]} num1534 = {'col_num1534_1': [1534]} num1535 = {'col_num1535_1': [1535]} num1536 = {'col_num1536_1': [1536]} num1537 = {'col_num1537_1': [1537]} num1538 = {'col_num1538_1': [1538]} num1539 = {'col_num1539_1': [1539]} num1540 = {'col_num1540_1': [1540]} num1541 = {'col_num1541_1': [1541]} num1542 = {'col_num1542_1': [1542]} num1543 = {'col_num1543_1': [1543]} num1544 = {'col_num1544_1': [1544]} num1545 = {'col_num1545_1': [1545]} num1546 = {'col_num1546_1': [1546]} num1547 = {'col_num1547_1': [1547]} num1548 = {'col_num1548_1': [1548]} num1549 = {'col_num1549_1': [1549]} num1550 = {'col_num1550_1': [1550]} num1551 = {'col_num1551_1': [1551]} num1552 = {'col_num1552_1': [1552]} num1553 = {'col_num1553_1': [1553]} num1554 = {'col_num1554_1': [1554]} num1555 = {'col_num1555_1': [1555]} num1556 = {'col_num1556_1': [1556]} num1557 = {'col_num1557_1': [1557]} num1558 = {'col_num1558_1': [1558]} num1559 = {'col_num1559_1': [1559]} num1560 = {'col_num1560_1': [1560]} num1561 = {'col_num1561_1': [1561]} num1562 = {'col_num1562_1': [1562]} num1563 = {'col_num1563_1': [1563]} num1564 = {'col_num1564_1': [1564]} num1565 = {'col_num1565_1': [1565]} num1566 = {'col_num1566_1': [1566]} num1567 = {'col_num1567_1': [1567]} num1568 = {'col_num1568_1': [1568]} num1569 = {'col_num1569_1': [1569]} num1570 = {'col_num1570_1': [1570]} num1571 = {'col_num1571_1': [1571]} num1572 = {'col_num1572_1': [1572]} num1573 = {'col_num1573_1': [1573]} num1574 = {'col_num1574_1': [1574]} num1575 = {'col_num1575_1': [1575]} num1576 = {'col_num1576_1': [1576]} num1577 = {'col_num1577_1': [1577]} num1578 = {'col_num1578_1': [1578]} num1579 = {'col_num1579_1': [1579]} num1580 = {'col_num1580_1': [1580]} num1581 = {'col_num1581_1': [1581]} num1582 = {'col_num1582_1': [1582]} num1583 = {'col_num1583_1': [1583]} num1584 = {'col_num1584_1': [1584]} num1585 = {'col_num1585_1': [1585]} num1586 = {'col_num1586_1': [1586]} num1587 = {'col_num1587_1': [1587]} num1588 = {'col_num1588_1': [1588]} num1589 = {'col_num1589_1': [1589]} num1590 = {'col_num1590_1': [1590]} num1591 = {'col_num1591_1': [1591]} num1592 = {'col_num1592_1': [1592]} num1593 = {'col_num1593_1': [1593]} num1594 = {'col_num1594_1': [1594]} num1595 = {'col_num1595_1': [1595]} num1596 = {'col_num1596_1': [1596]} num1597 = {'col_num1597_1': [1597]} num1598 = {'col_num1598_1': [1598]} num1599 = {'col_num1599_1': [1599]} num1600 = {'col_num1600_1': [1600]} num1601 = {'col_num1601_1': [1601]} num1602 = {'col_num1602_1': [1602]} num1603 = {'col_num1603_1': [1603]} num1604 = {'col_num1604_1': [1604]} num1605 = {'col_num1605_1': [1605]} num1606 = {'col_num1606_1': [1606]} ``` -------------------------------- ### Python Syntax Error: Expected Colon Source: https://github.com/spotfiresoftware/spotfire-python/blob/main/spotfire/test/files/data_function/syntax_error_b-3.10.txt Illustrates a Python SyntaxError where a colon is expected after an 'if' statement. This snippet shows the exact line causing the error. ```python if + 42 ``` -------------------------------- ### Python SyntaxError in Spotfire Script Source: https://github.com/spotfiresoftware/spotfire-python/blob/main/spotfire/test/files/data_function/syntax_error.txt This documentation details a common Python `SyntaxError` encountered when executing scripts within Spotfire. It highlights the traceback structure and the specific error message indicating invalid syntax, often caused by typos or incorrect Python constructs. ```Python Error executing Python script: File "", line 1 rais TypeError('from test_syntax_error') ^ SyntaxError: invalid syntax (, line 1) Traceback (most recent call last): File "data_function.py", in _compile_script self.compiled_script = compile(self.script, self.script_filename, 'exec') ``` -------------------------------- ### Python IndentationError in Spotfire Source: https://github.com/spotfiresoftware/spotfire-python/blob/main/spotfire/test/files/data_function/indentation_error-3.11.txt Illustrates a common Python IndentationError that occurs when script formatting is incorrect. This error typically arises from improper use of spaces or tabs for indentation, which is critical in Python syntax. The provided traceback highlights the specific line and character where the unexpected indent was detected. ```Python Error executing Python script: File "", line 1 print('You have entered an even number.') ^ IndentationError: unexpected indent (, line 1) Traceback (most recent call last): File "data_function.py", in _compile_script self.compiled_script = compile(self.script, self.script_filename, 'exec') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ``` -------------------------------- ### Execute Python Script in Spotfire Source: https://github.com/spotfiresoftware/spotfire-python/blob/main/spotfire/test/files/data_function/stderr_pysrv116_2-3.13.txt This snippet shows the Python code responsible for executing a compiled script within the Spotfire environment. It is part of the error handling process and indicates where an exception might occur. ```python exec(compiled_script, self.globals) ``` -------------------------------- ### Spotfire Python Numeric Data Structure Source: https://github.com/spotfiresoftware/spotfire-python/blob/main/spotfire/test/files/data_function/debug_log_truncate.txt Illustrates a typical data structure used to represent individual numeric data points within Spotfire's Python integration. Each entry typically maps a variable name (e.g., 'numXXX') to a dictionary containing a column name (e.g., 'col_numXXX_1') and a list with the corresponding numeric value. ```python num607: {'col_num607_1': [607]} ``` ```python num608: {'col_num608_1': [608]} ``` ```python num609: {'col_num609_1': [609]} ``` ```python num610: {'col_num610_1': [610]} ``` ```python num611: {'col_num611_1': [611]} ``` ```python num612: {'col_num612_1': [612]} ``` ```python num613: {'col_num613_1': [613]} ``` ```python num614: {'col_num614_1': [614]} ``` ```python num615: {'col_num615_1': [615]} ``` ```python num616: {'col_num616_1': [616]} ``` ```python num617: {'col_num617_1': [617]} ``` ```python num618: {'col_num618_1': [618]} ``` ```python num619: {'col_num619_1': [619]} ``` ```python num620: {'col_num620_1': [620]} ``` ```python num621: {'col_num621_1': [621]} ``` ```python num622: {'col_num622_1': [622]} ``` ```python num623: {'col_num623_1': [623]} ``` ```python num624: {'col_num624_1': [624]} ``` ```python num625: {'col_num625_1': [625]} ``` ```python num626: {'col_num626_1': [626]} ``` ```python num627: {'col_num627_1': [627]} ``` ```python num628: {'col_num628_1': [628]} ``` ```python num629: {'col_num629_1': [629]} ``` ```python num630: {'col_num630_1': [630]} ``` ```python num631: {'col_num631_1': [631]} ``` ```python num632: {'col_num632_1': [632]} ``` ```python num633: {'col_num633_1': [633]} ``` ```python num634: {'col_num634_1': [634]} ``` ```python num635: {'col_num635_1': [635]} ``` ```python num636: {'col_num636_1': [636]} ``` ```python num637: {'col_num637_1': [637]} ``` ```python num638: {'col_num638_1': [638]} ``` ```python num639: {'col_num639_1': [639]} ``` ```python num640: {'col_num640_1': [640]} ``` ```python num641: {'col_num641_1': [641]} ``` ```python num642: {'col_num642_1': [642]} ``` ```python num643: {'col_num643_1': [643]} ``` ```python num644: {'col_num644_1': [644]} ``` ```python num645: {'col_num645_1': [645]} ``` ```python num646: {'col_num646_1': [646]} ``` ```python num647: {'col_num647_1': [647]} ``` ```python num648: {'col_num648_1': [648]} ``` ```python num649: {'col_num649_1': [649]} ``` ```python num650: {'col_num650_1': [650]} ``` ```python num651: {'col_num651_1': [651]} ``` ```python num652: {'col_num652_1': [652]} ``` ```python num653: {'col_num653_1': [653]} ``` ```python num654: {'col_num654_1': [654]} ``` ```python num655: {'col_num655_1': [655]} ``` ```python num656: {'col_num656_1': [656]} ``` ```python num657: {'col_num657_1': [657]} ``` ```python num658: {'col_num658_1': [658]} ``` ```python num659: {'col_num659_1': [659]} ``` ```python num660: {'col_num660_1': [660]} ``` ```python num661: {'col_num661_1': [661]} ``` ```python num662: {'col_num662_1': [662]} ``` ```python num663: {'col_num663_1': [663]} ``` ```python num664: {'col_num664_1': [664]} ``` ```python num665: {'col_num665_1': [665]} ``` ```python num666: {'col_num666_1': [666]} ``` ```python num667: {'col_num667_1': [667]} ``` ```python num668: {'col_num668_1': [668]} ``` ```python num669: {'col_num669_1': [669]} ``` ```python num670: {'col_num670_1': [670]} ``` ```python num671: {'col_num671_1': [671]} ``` ```python num672: {'col_num672_1': [672]} ``` ```python num673: {'col_num673_1': [673]} ``` ```python num674: {'col_num674_1': [674]} ``` ```python num675: {'col_num675_1': [675]} ``` ```python num676: {'col_num676_1': [676]} ``` ```python num677: {'col_num677_1': [677]} ``` ```python num678: {'col_num678_1': [678]} ``` ```python num679: {'col_num679_1': [679]} ``` ```python num680: {'col_num680_1': [680]} ``` ```python num681: {'col_num681_1': [681]} ``` ```python num682: {'col_num682_1': [682]} ``` ```python num683: {'col_num683_1': [683]} ``` ```python num684: {'col_num684_1': [684]} ``` ```python num685: {'col_num685_1': [685]} ``` ```python num686: {'col_num686_1': [686]} ``` ```python num687: {'col_num687_1': [687]} ``` ```python num688: {'col_num688_1': [688]} ``` ```python num689: {'col_num689_1': [689]} ``` ```python num690: {'col_num690_1': [690]} ``` ```python num691: {'col_num691_1': [691]} ``` ```python num692: {'col_num692_1': [692]} ``` ```python num693: {'col_num693_1': [693]} ``` ```python num694: {'col_num694_1': [694]} ``` ```python num695: {'col_num695_1': [695]} ``` ```python num696: {'col_num696_1': [696]} ``` ```python num697: {'col_num697_1': [697]} ``` ```python num698: {'col_num698_1': [698]} ``` ```python num699: {'col_num699_1': [699]} ``` ```python num700: {'col_num700_1': [700]} ``` ```python num701: {'col_num701_1': [701]} ``` ```python num702: {'col_num702_1': [702]} ``` ```python num703: {'col_num703_1': [703]} ``` ```python num704: {'col_num704_1': [704]} ``` ```python num705: {'col_num705_1': [705]} ``` ```python num706: {'col_num706_1': [706]} ``` ```python num707: {'col_num707_1': [707]} ``` ```python num708: {'col_num708_1': [708]} ``` ```python num709: {'col_num709_1': [709]} ``` ```python num710: {'col_num710_1': [710]} ``` ```python num711: {'col_num711_1': [711]} ``` ```python num712: {'col_num712_1': [712]} ``` ```python num713: {'col_num713_1': [713]} ``` ```python num714: {'col_num714_1': [714]} ``` ```python num715: {'col_num715_1': [715]} ``` ```python num716: {'col_num716_1': [716]} ``` ```python num717: {'col_num717_1': [717]} ``` ```python num718: {'col_num718_1': [718]} ``` ```python num719: {'col_num719_1': [719]} ``` ```python num720: {'col_num720_1': [720]} ``` ```python num721: {'col_num721_1': [721]} ``` ```python num722: {'col_num722_1': [722]} ``` ```python num723: {'col_num723_1': [723]} ``` ```python num724: {'col_num724_1': [724]} ``` ```python num725: {'col_num725_1': [725]} ``` ```python num726: {'col_num726_1': [726]} ``` ```python num727: {'col_num727_1': [727]} ``` ```python num728: {'col_num728_1': [728]} ``` ```python num729: {'col_num729_1': [729]} ``` ```python num730: {'col_num730_1': [730]} ``` ```python num731: {'col_num731_1': [731]} ``` ```python num732: {'col_num732_1': [732]} ``` ```python num733: {'col_num733_1': [733]} ``` ```python num734: {'col_num734_1': [734]} ``` ```python num735: {'col_num735_1': [735]} ``` ```python num736: {'col_num736_1': [736]} ``` ```python num737: {'col_num737_1': [737]} ``` ```python num738: {'col_num738_1': [738]} ``` ```python num739: {'col_num739_1': [739]} ``` ```python num740: {'col_num740_1': [740]} ``` ```python num741: {'col_num741_1': [741]} ``` ```python num742: {'col_num742_1': [742]} ``` ```python num743: {'col_num743_1': [743]} ``` ```python num744: {'col_num744_1': [744]} ``` ```python num745: {'col_num745_1': [745]} ``` ```python num746: {'col_num746_1': [746]} ``` ```python num747: {'col_num747_1': [747]} ``` ```python num748: {'col_num748_1': [748]} ``` ```python num749: {'col_num749_1': [749]} ``` ```python num750: {'col_num750_1': [750]} ``` ```python num751: {'col_num751_1': [751]} ``` ```python num752: {'col_num752_1': [752]} ``` ```python num753: {'col_num753_1': [753]} ``` ```python num754: {'col_num754_1': [754]} ``` ```python num755: {'col_num755_1': [755]} ``` ```python num756: {'col_num756_1': [756]} ``` ```python num757: {'col_num757_1': [757]} ``` -------------------------------- ### Python Syntax Error: Expected Colon Source: https://github.com/spotfiresoftware/spotfire-python/blob/main/spotfire/test/files/data_function/syntax_error_b-3.11.txt This snippet illustrates a common Python SyntaxError where a colon is missing at the end of an 'if' statement. This error prevents the script from compiling and executing within Spotfire. ```python if + 42 # Code block here ``` ```python-traceback Error executing Python script: File "", line 1 if + 42 ^ SyntaxError: expected ':' (, line 1) Traceback (most recent call last): File "data_function.py", in _compile_script self.compiled_script = compile(self.script, self.script_filename, 'exec') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ``` -------------------------------- ### Python IndentationError in Spotfire Source: https://github.com/spotfiresoftware/spotfire-python/blob/main/spotfire/test/files/data_function/indentation_error-3.13.txt Details the Python IndentationError, which occurs due to incorrect spacing or indentation in Python code. This error is critical for script execution and often arises from mixing tabs and spaces or improper block structuring within Spotfire data functions. ```python Error executing Python script: File "", line 1 print('You have entered an even number.') ^ IndentationError: unexpected indent (, line 1) Traceback (most recent call last): File "data_function.py", in _compile_script self.compiled_script = compile(self.script, self.script_filename, 'exec') ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.