Jump to content

John

Seeq Team
  • Posts

    5
  • Joined

  • Last visited

  • Days Won

    2

John last won the day on April 12 2023

John had the most liked content!

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

John's Achievements

Rookie

Rookie (2/14)

  • Dedicated
  • Conversation Starter
  • First Post
  • Week One Done
  • One Month Later

Recent Badges

3

Reputation

  1. @Nitish, Great question! What kind of Add-on are you developing? Is it an Add-on Tool or a frontend Add-on that uses a Data Lab Function as a backend? If you are developing an Add-on uses a Data Lab Function as a backend then you can directly call the reserved `LOG` variable to write to the Data Lab logger. Lets look at a really simple example of a function in the cell of a Data Lab Functions notebook. def add_ten(number=0): # This function adds 10 to a number LOG.info("Starting the process") try: new_number = number + 10 return new_number except Exception as e # Lets log this failure LOG.error(f"Failed to add ten with error - {e}" Alternatively, you can use the `getLogger` method from the logging module to get the Data Lab Functions Logger: import os import logging my_log = logging.getLogger(os.environ['SEEQ_DATALAB_FUNCTIONS_LOGGER']) my_log.info("Hello World!") The logs for the Data Lab Function can be viewed from : `https://your.seeq.server/data-lab/<DATALAB_PROJECT_ID>/functions/logs` Check out https://support.seeq.com/kb/latest/cloud/reserved-variables#id-(R64)ReservedVariables-TheLOGObject for more information.
  2. Welcome to the Seeq Developer Club Forum! This forum is your go-to destination for all things related to developing Add-ons, API integrations, and leveraging Seeq's capabilities to enhance your projects. Whether you're a seasoned developer or just starting out, this is the place to discuss, share insights, and collaborate with fellow Seeq users. To ensure a positive and productive experience for everyone, please take note of the following guidelines: Public Forum: While we encourage open discussion and collaboration, please refrain from sharing sensitive or confidential information, as this is a public forum accessible to all. Respectful Dialogue: The goal of this forum is to foster respectful and constructive dialogue. Please refrain from behavior that may be considered harassing, threatening, or discriminatory. Resource Utilization: Before posting questions, explore our extensive documentation, tutorials, and the Seeq Support site. You may find answers to your queries or helpful resources that address your needs. Seeq Support - Developing Seeq Add-ons and Connectors Specificity is Key: When posting questions, provide as much detail as possible about your environment, the Seeq version you're using, and any error messages encountered. Screenshots or code snippets can greatly aid in understanding and resolving issues. Constructive Engagement: When responding to questions, aim to be helpful and constructive. Avoid personal attacks or dismissive comments and focus on providing valuable feedback and assistance. We're thrilled to have you as part of our developer community! Let's collaborate, innovate, and empower each other to unlock the full potential of Seeq. Thank you for your participation!
  3. In more recent versions of Seeq (+R58), we have changed our Add-on rendering engine to Voila and renamed the functionality to "Add-on Mode" from "AppMode." The rendered Voila interface is designed for interactivity and is based on widgets. As you've noticed this means that code in a cell may not function the same way in both Jupyter and Voila. This is particularly true around interactions (i.e. inputs). A way to get an input is to use a widget from ipywidgets and then use the value from the widget in your code. Here is a sample code snippet that uses an input widget and renders the value when a button is clicked. import ipywidgets as widgets #Define the input user_input = widgets.Text( value='Hello World', placeholder='Type something', description='String:', disabled=False ) #define a button button = widgets.Button( description="Execute", button_style='success' ) #define an Output - someplace to render the button click output = widgets.Output() #Do something when button is clicked def get_input_value(b): with output: print(user_input.value) button.on_click(get_input_value) #display input, button, and output Vertically widgets.VBox([user_input,button,output]) Tip: In the new Advanced Mode in Seeq Data Lab you can render your notebook without having to navigate to a separate tab. You can access the "Add-on Mode Preview" from the View section in the top menu. For information about the new Advanced Mode Seeq Data Lab check please check out Advanced Mode for Data Lab. Additional Information: ipywidgets
  4. Seeq Version: R21.0.42+ Question: How can i create a signal that forcasts a value out into the future based on some rolling period of historical data? For this example say i want to predict the Area A Temperature 3 days in the future based on the previous week (7 days) of data.
×
×
  • Create New...