{ "cells": [ { "cell_type": "markdown", "id": "3bf211fe", "metadata": {}, "source": [ "# Access an activity report" ] }, { "cell_type": "markdown", "id": "a74b5172", "metadata": {}, "source": [ "This example shows how to connect to Granta MI and access the activity report. It shows how to view all activity\n", "entries, or how to select entries that meet one or more criteria." ] }, { "cell_type": "markdown", "id": "71c3a6f5", "metadata": {}, "source": [ "## Connect to Granta MI" ] }, { "cell_type": "markdown", "id": "d94834eb", "metadata": {}, "source": [ "Import the ``Connection`` class and create the connection. For more information, see the\n", "[Basic Usage](../1_Basic_usage.ipynb) example." ] }, { "cell_type": "code", "execution_count": null, "id": "c1667651", "metadata": {}, "outputs": [], "source": [ "from ansys.grantami.system import Connection\n", "\n", "connection = Connection(\"http://my_grantami_server/mi_servicelayer\").with_autologon()\n", "client = connection.connect()" ] }, { "cell_type": "markdown", "id": "63eabfcf", "metadata": {}, "source": [ "## Fetch activity report" ] }, { "cell_type": "markdown", "id": "9b2d0a0b", "metadata": {}, "source": [ "To fetch the activity report, use the `get_activity_report()` method. This method returns an iterator." ] }, { "cell_type": "markdown", "id": "6d882c3b", "metadata": {}, "source": [ "