<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: saspy on Azure ML notebooks in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/saspy-on-Azure-ML-notebooks/m-p/839379#M25341</link>
    <description>&lt;P&gt;And, since you can override any of the configuration definition keys on the SASsession() method, you can simply supply what you need on it, overriding the 'default' config which will be used (by default) if you have no config file. In fact, you can do something as simple as the following to make it easy to test out before creating a sascfg_personal.py file wherever you might be able to create a file out there:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;oda      = {'java'      : '/usr/bin/java',
             'iomhost'  : ['odaws01-usw2-2.oda.sas.com','odaws02-usw2-2.oda.sas.com',
                           'odaws01-usw2.oda.sas.com','odaws02-usw2.oda.sas.com','odaws03-usw2.oda.sas.com','odaws04-usw2.oda.sas.com'],
            'iomport'   : 8591,
            }

import saspy
sas = saspy.SASsession(**oda)
sas
&lt;BR /&gt;

&lt;/PRE&gt;
&lt;PRE&gt;&amp;gt;&amp;gt;&amp;gt; sas
Access Method         = IOM
SAS Config name       = default
SAS Config file       = /opt/tom/github/saspy/saspy/sascfg_personal.py
WORK Path             = /saswork/SAS_work9A2D00013BDA_odaws03-usw2.oda.sas.com/SAS_work0E1100013BDA_odaws03-usw2.oda.sas.com/
SAS Version           = 9.04.01M6P11072018
SASPy Version         = 4.3.5
Teach me SAS          = False
Batch                 = False
Results               = Pandas
SAS Session Encoding  = utf-8
Python Encoding value = utf_8
SAS process Pid value = 80858


&amp;gt;&amp;gt;&amp;gt;
&lt;/PRE&gt;
&lt;P&gt;The full config doc is here, btw:&amp;nbsp;&lt;A href="https://sassoftware.github.io/saspy/configuration.html#" target="_self"&gt;configuration&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 19 Oct 2022 13:31:21 GMT</pubDate>
    <dc:creator>sastpw</dc:creator>
    <dc:date>2022-10-19T13:31:21Z</dc:date>
    <item>
      <title>saspy on Azure ML notebooks</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/saspy-on-Azure-ML-notebooks/m-p/839359#M25338</link>
      <description>&lt;P&gt;Hi folks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We're using Azure ML Notebooks and we need to connect with our SAS 9.4 server. I already installed saspy on Azure ML Notebooks using the command pip install saspy successfully.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyone knows where the sascfg_personal.py is located and how to configure it?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2022 12:27:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/saspy-on-Azure-ML-notebooks/m-p/839359#M25338</guid>
      <dc:creator>MariaD</dc:creator>
      <dc:date>2022-10-19T12:27:48Z</dc:date>
    </item>
    <item>
      <title>Re: saspy on Azure ML notebooks</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/saspy-on-Azure-ML-notebooks/m-p/839369#M25339</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From&amp;nbsp;&lt;A href="https://sassoftware.github.io/saspy/configuration.html#sascfg-personal-py" target="_blank"&gt;https://sassoftware.github.io/saspy/configuration.html#sascfg-personal-py&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patrick_0-1666184374529.png" style="width: 686px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/76304iFE19D31EA8F4D3B9/image-dimensions/686x384?v=v2" width="686" height="384" role="button" title="Patrick_0-1666184374529.png" alt="Patrick_0-1666184374529.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2022 13:00:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/saspy-on-Azure-ML-notebooks/m-p/839369#M25339</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2022-10-19T13:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: saspy on Azure ML notebooks</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/saspy-on-Azure-ML-notebooks/m-p/839379#M25341</link>
      <description>&lt;P&gt;And, since you can override any of the configuration definition keys on the SASsession() method, you can simply supply what you need on it, overriding the 'default' config which will be used (by default) if you have no config file. In fact, you can do something as simple as the following to make it easy to test out before creating a sascfg_personal.py file wherever you might be able to create a file out there:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;oda      = {'java'      : '/usr/bin/java',
             'iomhost'  : ['odaws01-usw2-2.oda.sas.com','odaws02-usw2-2.oda.sas.com',
                           'odaws01-usw2.oda.sas.com','odaws02-usw2.oda.sas.com','odaws03-usw2.oda.sas.com','odaws04-usw2.oda.sas.com'],
            'iomport'   : 8591,
            }

import saspy
sas = saspy.SASsession(**oda)
sas
&lt;BR /&gt;

&lt;/PRE&gt;
&lt;PRE&gt;&amp;gt;&amp;gt;&amp;gt; sas
Access Method         = IOM
SAS Config name       = default
SAS Config file       = /opt/tom/github/saspy/saspy/sascfg_personal.py
WORK Path             = /saswork/SAS_work9A2D00013BDA_odaws03-usw2.oda.sas.com/SAS_work0E1100013BDA_odaws03-usw2.oda.sas.com/
SAS Version           = 9.04.01M6P11072018
SASPy Version         = 4.3.5
Teach me SAS          = False
Batch                 = False
Results               = Pandas
SAS Session Encoding  = utf-8
Python Encoding value = utf_8
SAS process Pid value = 80858


&amp;gt;&amp;gt;&amp;gt;
&lt;/PRE&gt;
&lt;P&gt;The full config doc is here, btw:&amp;nbsp;&lt;A href="https://sassoftware.github.io/saspy/configuration.html#" target="_self"&gt;configuration&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2022 13:31:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/saspy-on-Azure-ML-notebooks/m-p/839379#M25341</guid>
      <dc:creator>sastpw</dc:creator>
      <dc:date>2022-10-19T13:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: saspy on Azure ML notebooks</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/saspy-on-Azure-ML-notebooks/m-p/839391#M25342</link>
      <description>Thanks!&lt;BR /&gt;</description>
      <pubDate>Wed, 19 Oct 2022 14:33:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/saspy-on-Azure-ML-notebooks/m-p/839391#M25342</guid>
      <dc:creator>MariaD</dc:creator>
      <dc:date>2022-10-19T14:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: saspy on Azure ML notebooks</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/saspy-on-Azure-ML-notebooks/m-p/840030#M25360</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/143096"&gt;@sastpw&lt;/a&gt;&amp;nbsp;, a quick question. In the example that you share, is it necessary the "**" before the name o "oda" variable?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Oct 2022 21:01:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/saspy-on-Azure-ML-notebooks/m-p/840030#M25360</guid>
      <dc:creator>MariaD</dc:creator>
      <dc:date>2022-10-21T21:01:18Z</dc:date>
    </item>
    <item>
      <title>Re: saspy on Azure ML notebooks</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/saspy-on-Azure-ML-notebooks/m-p/840276#M25372</link>
      <description>&lt;P&gt;Hey, sorry, I was out on vacation. Yes, **kwargs is a standard Python convention for a method signature. To pass individual keyword arguments you code it like this:&lt;/P&gt;
&lt;PRE&gt;Given the method definition: class saspy.SASsession(**kwargs)

sas = saspy.SASsession(java = '/usr/bin/java', iomhost = ['odaws01-usw2-2.oda.sas.com','odaws02-usw2-2.oda.sas.com', 'odaws01-usw2.oda.sas.com','odaws02-usw2.oda.sas.com','odaws03-usw2.oda.sas.com','odaws04-usw2.oda.sas.com'], iomport = 8591)

Or, to pass a dict of kwargs you use the **dict syntax:

sas = saspy.SASsession(**dict)

&lt;/PRE&gt;
&lt;P&gt;That's just Python syntax, nothing unique having to do with saspy.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2022 13:36:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/saspy-on-Azure-ML-notebooks/m-p/840276#M25372</guid>
      <dc:creator>sastpw</dc:creator>
      <dc:date>2022-10-24T13:36:33Z</dc:date>
    </item>
  </channel>
</rss>

