From: Alexey on 13 Sep 2009 08:00 Hi, Is there a way to force Mathematica 7 to load full set of paclets for further offline use? If I know that some time I will not have access to Internet but I will need use paclet data (e.g. GraphData[]), what command I should use for loading ALL paclet-files associated with GraphData[] and storing them offline? It there universal way for any type of such data (GraphData[], KnotData[], LatticeData[] etc.)?
From: David Bailey on 21 Sep 2009 05:49 Alexey wrote: > Hi, > Is there a way to force Mathematica 7 to load full set of paclets for > further offline use? If I know that some time I will not have access > to Internet but I will need use paclet data (e.g. GraphData[]), what > command I should use for loading ALL paclet-files associated with > GraphData[] and storing them offline? It there universal way for any > type of such data (GraphData[], KnotData[], LatticeData[] etc.)? > There does not seem to be a totally satisfactory solution to this, in that it would seem that if Mathematica thinks there is an internet connection, it will try to refresh the data, and generate errors if the connection is weak or drops part way through the update. This can be particularly troublesome while giving a presentation! I solved this by loading all the data I required, and storing it separately using Save. David Bailey http://www.dbaileyconsultancy.co.uk
From: A. B. on 23 Sep 2009 18:13 Hello, David, Could you please expand on the last bit. How did you 'Save' the data once downloaded ? > Alexey wrote: >> Hi, >> Is there a way to force Mathematica 7 to load full set of paclets for >> further offline use? If I know that some time I will not have access >> to Internet but I will need use paclet data (e.g. GraphData[]), what >> command I should use for loading ALL paclet-files associated with >> GraphData[] and storing them offline? It there universal way for any >> type of such data (GraphData[], KnotData[], LatticeData[] etc.)? >> > There does not seem to be a totally satisfactory solution to this, in > that it would seem that if Mathematica thinks there is an internet > connection, it will try to refresh the data, and generate errors if the > connection is weak or drops part way through the update. This can be > particularly troublesome while giving a presentation! > > I solved this by loading all the data I required, and storing it > separately using Save. > > David Bailey > http://www.dbaileyconsultancy.co.uk >
From: Alexey on 23 Sep 2009 23:50 Hello, I have discovered the function PacletSites[]: ?PacletSites PacletSites[] gives the list of currently-enabled paclet sites. The current value is: In[2]:= PacletSites[] Out[2]= {PacletSite[http://pacletserver.wolfram.com,Wolfram Research Paclet Server,Enabled->True,Local->False]} It seems that the option "Local" in the PacletSite specification controls offline use. I there a way to set it in "True"? On 13 Sep, 16:00, Alexey <lehi...(a)gmail.com> wrote: > Hi, > Is there a way to force Mathematica 7 to load full set of paclets for > further offline use? If I know that some time I will not have access > to Internet but I will need use paclet data (e.g. GraphData[]), what > command I should use for loading ALL paclet-files associated with > GraphData[] and storing them offline? It there universal way for any > type of such data (GraphData[], KnotData[], LatticeData[] etc.)?
From: David Bailey on 25 Sep 2009 05:55
A. B. wrote: > Hello, David, > > Could you please expand on the last bit. How did you 'Save' the data once > downloaded ? > >> Alexey wrote: >>> Hi, >>> Is there a way to force Mathematica 7 to load full set of paclets for >>> further offline use? If I know that some time I will not have access >>> to Internet but I will need use paclet data (e.g. GraphData[]), what >>> command I should use for loading ALL paclet-files associated with >>> GraphData[] and storing them offline? It there universal way for any >>> type of such data (GraphData[], KnotData[], LatticeData[] etc.)? >>> >> There does not seem to be a totally satisfactory solution to this, in >> that it would seem that if Mathematica thinks there is an internet >> connection, it will try to refresh the data, and generate errors if the >> connection is weak or drops part way through the update. This can be >> particularly troublesome while giving a presentation! >> >> I solved this by loading all the data I required, and storing it >> separately using Save. >> >> David Bailey >> http://www.dbaileyconsultancy.co.uk >> > > Well the exact details obviously depend on what data you need. Here is some code that extracts the country data needed for a particular program. I created two variables and a function containing the data and then saved the result away using DumpSave (I could have used Save, but binary files are faster for bulky data sets). AllCountries=CountryData[]; AllPolygonData=CountryData[#,{"Polygon","Equirectangular"}]&/@AllCountries; Map[(CountryPolygonData[Evaluate[#]]=CountryData[#,"Polygon"])&,AllCountries]; DumpSave["saveddata.mx",{AllCountries,AllPolygonData,CountryPolygonData}]; Read the data back using Get, and Mathematica will never go and interrogate the internet. David Bailey http://www.dbaileyconsultancy.co.uk |