1
$\begingroup$

We can encounter that interesting package sometimes,like GUIKit`,but I don't know how to find those.I can found that package which has been default loaded

Union[Select[GeneralUtilities`SymbolNameContext /@ 
   GeneralUtilities`ExtendedNames[All], StringCount[#, "`"] == 1 &]]

{Algebra`,AlphaIntegration`,Assumptions`,AssumptionsDump`,Audio`,AugmentedData`,BinningUtilities`,BoxForm`,BoxFormat`,BrowserCategoryLoad`,Calendar`,CCodeGenerator`,CCompilerDriver`,Charting`,Clipboard`,CloudObject`,CloudSystem`,Compile`,Compiler`,ComplexAnalysis`,Conditional`,ConsoleWindow`,Control`,ControlSystems`,Conversion`,CUDAInformation`,Data`,Database`,DatabaseLink`,DataPaclets`,Dataset`,DateAndTime`,Debug`,Debugger`,Deconvolve`,Developer`,...}

But It's don't include GUIKit`.So how to find those package which have not been default loaded but exist in my local disk?

$\endgroup$
5
  • $\begingroup$ You can find source code of many packages if you evaluate SystemOpen@FileNameJoin[{$InstallationDirectory, "AddOns"}] . In the subfolder "Packages" there is also GUIKit package. $\endgroup$
    – Pinti
    Mar 13, 2017 at 13:53
  • $\begingroup$ @Pinti Oh,I find that,so this folder contain all package we can Needs? $\endgroup$
    – yode
    Mar 13, 2017 at 13:56
  • 1
    $\begingroup$ I think Needs looks for packages in all folders listed in $Path. $\endgroup$
    – Pinti
    Mar 13, 2017 at 14:06
  • $\begingroup$ @Pinti Thanks for your explanation,I thinks if you compose it for read,I will accepted that. $\endgroup$
    – yode
    Mar 13, 2017 at 14:07
  • $\begingroup$ at least closely related: 133242 $\endgroup$
    – Kuba
    Mar 13, 2017 at 16:38

1 Answer 1

4
$\begingroup$

Needs by default searches for packages in folders listed in $Path.

One of the elements of $Path is also FileNameJoin[{$InstallationDirectory, "AddOns"}] where you can find source code of many additional packages that come with Mathematica but are not part of System context.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.