Jump to content
We've recently updated our Privacy Statement, available here. ×

Is there a way to "embed" python libraries that can then be used offline


Chad Holland

Recommended Posts

All:

I have a bit of an odd requirement for a dashboard. I need the dashboard to work when my users are offline, and I have a few python scripts that need to be able to run.

Namely, I am using these libaries:

import json

import clr

clr.AddReference("Microsoft.Office.Interop.Outlook")

from System.Runtime.InteropServices import Marshal

clr.AddReference("System.Windows.Forms")

from System.Windows.Forms import MessageBox

from Spotfire.Dxp.Data import *

from Spotfire.Dxp.Application.Visuals import HtmlTextArea

from Spotfire.Dxp.Framework.ApplicationModel import ApplicationThread

I need my user to be able to at least create and email and queue it up to be sent by outlook when they are offline, then outlook can handle the send/recieve when they are back online. The problem of course is that my imports are reliant on you being connected to the internet to import those libraries. I am curious, is there a way in Spotfire, that I can top end import the libraries and save them to the DXP, so that the libraries can be used in my code when the user is offline

EDIT: Perhaps a better question/approach would be, is there a way to use("Microsoft.Office.Interop.Outlook") from a local reference, so my users can have this installed locally, and then the python script references the local library instead of trying to go to the web

Thanks in advance,

Chad

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...