Skip to main content

front end - What is the complete list of valid FrontEnd Packet types?


In response to my question How can I get the unchanged Box form of an arbitrary expression? John Fultz answered with a method using the hilariously named FrontEnd`UndocumentedTestFEParserPacket.


What is the complete list of such Packets?




Related:




Answer




Once again thanks to John Fultz we know a command that returns the complete list of these packets:


MathLink`CallFrontEnd[FrontEnd`NeedCurrentFrontEndSymbolsPacket[]][[1, 1, 4]]

Results from Mathematica 7:


""
"Null"
"CompoundExpression"
"List"
"Execute"
"FrontEndExecute"

"KernelExecute"
"OpenParallelLinksPacket"
"KernelStartupCompleted"
"ReassignInputNamePacket"
"InputNamePacket"
"OutputNamePacket"
"ReturnTextPacket"
"ReturnInputFormPacket"
"ReturnPacket"
"TextPacket"

"DisplayPacket"
"DisplayEndPacket"
"SyntaxPacket"
"InputPacket"
"InputStringPacket"
"ExperimentalInputMouseCoordinatesPacket"
"MenuPacket"
"MessagePacket"
"ConsoleMessagePacket"
"PrintTemporaryPacket"

"SuspendPacket"
"ResumePacket"
"BeginDialogPacket"
"EndDialogPacket"
"EvaluatorStart"
"EvaluatorQuit"
"EvaluatorInterrupt"
"EvaluatorAbort"
"EvaluatorHalt"
"EnterSubsession"

"ExitSubsession"
"Forward"
"ForwardEvaluate"
"ForwardedData"
"CompletionsListPacket"
"SpellingSuggestionsPacket"
"NotebookResetGeneratedCells"
"DontNotebookResetGeneratedCells"
"BeginFrontEndInteractionPacket"
"EndFrontEndInteractionPacket"

"DisplaySetSizePacket"
"DisplayFlushImagePacket"
"FlushPrintOutputPacket"
"FrontEndToken"
"SetFileLoadingContext"
"Version"
"VersionNumber"
"DefaultFormatTypeForStyle"
"Notebooks"
"SelectedNotebook"

"SetSelectedNotebook"
"InputNotebook"
"EvaluationNotebook"
"SetEvaluationNotebook"
"ButtonNotebook"
"ClipboardNotebook"
"MessagesNotebook"
"HelpBrowserNotebook"
"DefaultHelpViewerNotebook"
"DebuggerContinue"

"DebuggerContinueToSelection"
"DebuggerSelect"
"DebuggerSetStackList"
"DebuggerSetExpressionColoring"
"DebuggerGetSelectionInformation"
"DebuggerAddBreakpoint"
"DebuggerRemoveBreakpoint"
"DebuggerEnableBreakpoint"
"DebuggerDisableBreakpoint"
"DebuggerSetAutoContinueBreakpoint"

"DebuggerSetNoAutoContinueBreakpoint"
"DebuggerSetBreakOnAssignmentWatchpoint"
"DebuggerSetNoBreakOnAssignmentWatchpoint"
"DebuggerSetBreakOnEvaluationWatchpoint"
"DebuggerSetNoBreakOnEvaluationWatchpoint"
"DebuggerSetBreakOnFunctionWatchpoint"
"DebuggerSetNoBreakOnFunctionWatchpoint"
"DebuggerToolsNotebook"
"DebuggerStackNotebook"
"DebuggerBreakpointsNotebook"

"EvaluationCell"
"ButtonCell"
"NotebookCreate"
"NotebookCreateReturnObject"
"NotebookOpen"
"NotebookOpenReturnObject"
"NotebookLocate"
"NotebookLocateReturnResult"
"SystemOpen"
"HelpBrowserLookup"

"HelpBrowserLookupReturnResult"
"HelpBrowserGetListBoxList"
"HelpBrowserSetListBoxItem"
"NotebookClose"
"NotebookSave"
"NotebookSaveAs"
"NotebookConvert"
"NotebookPrint"
"NotebookImage"
"ToExpression"

"NotebookPut"
"NotebookPutReturnObject"
"NotebookGet"
"NotebookRead"
"NotebookWrite"
"NotebookApply"
"CellPrint"
"NotebookDelete"
"NotebookFind"
"NotebookFindReturnObject"

"SelectionMove"
"SelectionCreateCell"
"SelectionCellCreateCell"
"SelectionDuplicateCell"
"SelectionEvaluate"
"SelectionEvaluateCreateCell"
"SelectionEvaluateApply"
"FileBrowse"
"DirectoryBrowse"
"ChooseColor"

"RecordSound"
"Options"
"FullOptions"
"AbsoluteOptions"
"LocalOptions"
"LocalAbsoluteOptions"
"SetOptions"
"RemoveOptions"
"SetLocalOptions"
"SaveConversionOptions"

"RestoreConversionOptions"
"SelectionSetStyle"
"CallPacket"
"Value"
"SetValue"
"Select2DTool"
"Select3DTool"
"Argument"
"SetArgument"
"ChildObject"

"ObjectChildren"
"ObjectChildCount"
"NextSiblingObject"
"PreviousSiblingObject"
"ParentObject"
"SelectObject"
"SelectedObject"
"OutputCellObject"
"ObjectGet"
"ObjectPut"

"NotebookSuspendScreenUpdates"
"NotebookResumeScreenUpdates"
"NotebookUpdateScreen"
"SelectNamedObject"
"ReadNamedObject"
"ReplaceNamedObject"
"SelectionApply"
"SelectionCellsMap"
"SelectionCellContentsMap"
"EvaluatePacket"

"SetKernelSymbolContexts"
"UpdateKernelSymbolContexts"
"SetFunctionInformation"
"UpdateDynamicObjects"
"UpdateDynamicObjectsSynchronous"
"AddVariableDefiningFunctions"
"AddUsedToGenerateSideEffectGraphicsFunctions"
"AddFunctionTemplateInformationToFunctions"
"AddOptionInformationToFunctions"
"ControllerBindingsInOutput"

"ReturnDynamicOutput"
"NotebookInformation"
"CellInformation"
"ToFileName"
"SetPersistentFrontEnd"
"GetMenusPacket"
"ResetMenusPacket"
"AddFileBrowserFilterPacket"
"OpenFunctionInspectorPacket"
"GetErrorsInSelectionPacket"

"ErrorIconIsDisplayedPacket"
"UndocumentedTestFEParserPacket"
"UndocumentedGetSelectionPacket"
"UndocumentedBoxInformationPacket"
"UndocumentedBoxStatisticsPacket"
"UndocumentedHangFrontEndPacket"
"UndocumentedCrashFrontEndPacket"
"UndocumentedGetNGraphicsImagePacket"
"UndocumentedGetBoxTypesPacket"
"UndocumentedWhyTheBeepText"

"ReparseBoxStructurePacket"
"AddBoxIDs"
"SetBoxIDs"
"GetBoxIDs"
"RemoveBoxIDs"
"BoxReferenceExists"
"BoxReferenceFind"
"BoxReferenceRead"
"BoxReferenceReplace"
"BoxReferenceSetOptions"

"BoxReferenceGetOptions"
"UndocumentedProtoTypeBuild"
"ImportToNotebook"
"ConvertToPostScriptPacket"
"ConvertToPostScriptPacket2"
"VerboseConvertToPostScriptPacket"
"ConvertToBitmapPacket"
"VerboseConvertToBitmapPacket"
"ExportPacket"
"GetLinebreakInformationPacket"

"GetPageBreakInformationPacket"
"GetSelectionBoundingBoxes"
"GetBoundingBoxSizePacket"
"NotebookSetupLayoutInformationPacket"
"NotebookGetLayoutInformationPacket"
"NotebookGetFontParametersPacket"
"NotebookGetMisspellingsPacket"
"InputToBoxFormPacket"
"ExpressionPacket"
"ReturnExpressionPacket"

"CreatePalettePacket"
"SetNotebookStatusLine"
"SetBoxFormNamesPacket"
"NeedCurrentFrontEndPackagePacket"
"NeedCurrentFrontEndSymbolsPacket"
"SpeakTextPacket"
"SetSpeechParametersPacket"
"CurrentlySpeakingPacket"
"BeepPacket"
"PlaySoundPacket"

"PlaySoundFilePacket"
"TimeConstrained"
"MemoryConstrained"
"GetFrontEndOptionsDataPacket"
"TemplateTooltipPacket"
"GetCellTagsPacket"
"AddEvaluatorNames"
"AddMenuCommands"
"AddDefaultFontProperties"
"NotebookReleaseHold"

"NotebookDynamicToLiteral"
"NotebookCreateDynamicCaches"
"SelectionAddCellTags"
"SelectionRemoveCellTags"
"SelectionAnimate"
"RegisterConverter"
"ParseFileToLinkPacket"
"DebugTooltipPacket"
"CursorTooltipPacket"
"Install"

"SetJavaParameter"
"FindFileOnPath"
"GetFunctionCategories"
"CopyToClipboard"
"SimulateMouseMove"
"SimulateMouseClick"
"SimulateMouseDrag"
"SimulateKeyPress"
"SimulatedEventPending"
"AttachWindow"

"DetachWindow"
"AttachedWindowRequestingModality"
"AttachedWindowReleasingModality"
"MLFS`Put"
"MLFS`PutAppend"
"MLFS`Get"
"MLFS`OpenRead"
"MLFS`OpenWrite"
"MLFS`OpenAppend"
"MLFS`Close"

"MLFS`StreamPosition"
"MLFS`SetStreamPosition"
"MLFS`Read"
"MLFS`WriteString"
"MLFS`URLDownload"
"MLFS`FileNames"
"MLFS`CopyFile"
"MLFS`RenameFile"
"MLFS`DeleteFile"
"MLFS`FileByteCount"

"MLFS`FileDate"
"MLFS`SetFileDate"
"MLFS`FileType"
"MLFS`CreateDirectory"
"MLFS`DeleteDirectory"
"MLFS`RenameDirectory"
"MLFS`CopyDirectory"
"UpdateNewPrimitiveStyle"
"Plugin`NewNotebook"
"Plugin`OpenNotebook"

"Plugin`CloseNotebook"
"Plugin`Quit"
"Plugin`AssignParent"
"Plugin`SizeNotebook"
"Plugin`RedrawNotebook"
"Plugin`GetContextMenuForNotebook"

Missing from 10.0.2 that were present in 7:


"ButtonCell"
"Plugin`GetContextMenuForNotebook"

"Plugin`RedrawNotebook"

Present in 10.0.2 and not in 7:


"ActivateLicense"
"ApplyStyle"
"AttachCell"
"AttachedCellParent"
"Bib`ChooseCitationStylePacket"
"Bib`DeleteBibliographyPacket"
"Bib`DeleteCitationsPacket"

"Bib`InsertBibliographyPacket"
"Bib`InsertCitationPacket"
"Bib`InsertNotePacket"
"Bib`InsertSpecificCitationPacket"
"Bib`QueryCitationsPacket"
"Bib`QueryCitationStylesPacket"
"Bib`QueryNoteStylesPacket"
"Bib`RebuildBibliographyPacket"
"Bib`RebuildCitationsPacket"
"Bib`RefreshCitationsPacket"

"Bib`RefreshCitationStylesPacket"
"Bib`SetBibNoteStylePacket"
"Bib`SetCitationStylePacket"
"Boxes"
"BoxReferenceBoxObject"
"CA`QueryAutocompletionPacket"
"CDFDeploy"
"CDFInformation"
"Cells"
"CryptoHash"

"DetachCell"
"ErrorMessage"
"EvaluationBox"
"FinishStartup"
"FlushTextResourceCaches"
"ForwardAndHandle"
"GetMouseAppearance"
"LinguisticTranslateCellPacket"
"NewVersionAction"
"NewVersionAvailable"

"NotebookEvaluate"
"NotebookEvaluateReturn"
"NotebookPredictions"
"OptionCompletionsListPacket"
"OptionValuesCompletionsListPacket"
"ParentBox"
"ParentCell"
"ParentNotebook"
"PastePrediction"
"Plugin`KeyDown"

"Plugin`KeyUp"
"Plugin`MouseDown"
"Plugin`MouseMove"
"Plugin`MouseUp"
"Plugin`NotebookFileError"
"Plugin`OpenNotebookStream"
"Plugin`Print"
"Plugin`Save"
"Plugin`SetActiveWindow"
"Plugin`SetViewRegion"

"Plugin`UpdateScrollPosition"
"Plugin`UpdateScrollPositionRelative"
"RewriteExpressionPacket"
"SampleStyle"
"SelectionSetInlineCellOptions"
"SelectionSetPointStyle"
"SelectionSetRectangleRoundingRadius"
"SetMouseAppearance"
"SetNotebookInList"
"StartTaskTiming"

"StartupAction"
"StopTaskTiming"
"SuppressGraphicsHighlight"
"TemplateCachePacket"
"TickleActivation"
"WindowsCodePage"
"WolframCloud`AssignCloudObject"
"WolframCloud`AutomaticCloudLogin"
"WolframCloud`ConnectionAuthorized"
"WolframCloud`ConnectionCancelled"

"WolframCloud`ConnectionEstablished"
"WolframCloud`ConnectionFailed"
"WolframCloud`ConnectionInitiated"
"WolframCloud`ConnectionTerminated"
"WolframCloud`TaskInformation"
"WolframCloud`UploadComplete"
"WolframCloud`UploadFailed"
"WolframCloud`UploadInitiated"

Missing from 11.0.1 that were present in 10.0.2:



"AttachedWindowReleasingModality"
"AttachedWindowRequestingModality"
"AttachWindow"
"DetachWindow"
"ExperimentalInputMouseCoordinatesPacket"
"GetFunctionCategories"
"HelpBrowserGetListBoxList"
"HelpBrowserLookup"
"HelpBrowserLookupReturnResult"
"HelpBrowserNotebook"

"HelpBrowserSetListBoxItem"
"SelectionAnimate"

Several of these removed packets were for pre-version-6 features. SelectionAnimate is for animating a cell group and the HelpBrowserLookup packets are for opening the v5-style help browser, which was still available in v10 but removed from v11.


Present in 11.0.1 but not in 10.0.2


"CA`CADumpTriePacket"
"FromFileNameString"
"NotebookGetMisspellingsInStringPacket"
"NotebookGetSpellingSuggestionsPacket"
"NotebookToString"

"RemoveMenuCommands"
"WolframCloud`GenerateFileName"
"WolframCloud`GetAuthentication"
"WolframCloud`Logout"

Comments

Popular posts from this blog

plotting - Filling between two spheres in SphericalPlot3D

Manipulate[ SphericalPlot3D[{1, 2 - n}, {θ, 0, Pi}, {ϕ, 0, 1.5 Pi}, Mesh -> None, PlotPoints -> 15, PlotRange -> {-2.2, 2.2}], {n, 0, 1}] I cant' seem to be able to make a filling between two spheres. I've already tried the obvious Filling -> {1 -> {2}} but Mathematica doesn't seem to like that option. Is there any easy way around this or ... Answer There is no built-in filling in SphericalPlot3D . One option is to use ParametricPlot3D to draw the surfaces between the two shells: Manipulate[ Show[SphericalPlot3D[{1, 2 - n}, {θ, 0, Pi}, {ϕ, 0, 1.5 Pi}, PlotPoints -> 15, PlotRange -> {-2.2, 2.2}], ParametricPlot3D[{ r {Sin[t] Cos[1.5 Pi], Sin[t] Sin[1.5 Pi], Cos[t]}, r {Sin[t] Cos[0 Pi], Sin[t] Sin[0 Pi], Cos[t]}}, {r, 1, 2 - n}, {t, 0, Pi}, PlotStyle -> Yellow, Mesh -> {2, 15}]], {n, 0, 1}]

plotting - Plot 4D data with color as 4th dimension

I have a list of 4D data (x position, y position, amplitude, wavelength). I want to plot x, y, and amplitude on a 3D plot and have the color of the points correspond to the wavelength. I have seen many examples using functions to define color but my wavelength cannot be expressed by an analytic function. Is there a simple way to do this? Answer Here a another possible way to visualize 4D data: data = Flatten[Table[{x, y, x^2 + y^2, Sin[x - y]}, {x, -Pi, Pi,Pi/10}, {y,-Pi,Pi, Pi/10}], 1]; You can use the function Point along with VertexColors . Now the points are places using the first three elements and the color is determined by the fourth. In this case I used Hue, but you can use whatever you prefer. Graphics3D[ Point[data[[All, 1 ;; 3]], VertexColors -> Hue /@ data[[All, 4]]], Axes -> True, BoxRatios -> {1, 1, 1/GoldenRatio}]

plotting - Adding a thick curve to a regionplot

Suppose we have the following simple RegionPlot: f[x_] := 1 - x^2 g[x_] := 1 - 0.5 x^2 RegionPlot[{y < f[x], f[x] < y < g[x], y > g[x]}, {x, 0, 2}, {y, 0, 2}] Now I'm trying to change the curve defined by $y=g[x]$ into a thick black curve, while leaving all other boundaries in the plot unchanged. I've tried adding the region $y=g[x]$ and playing with the plotstyle, which didn't work, and I've tried BoundaryStyle, which changed all the boundaries in the plot. Now I'm kinda out of ideas... Any help would be appreciated! Answer With f[x_] := 1 - x^2 g[x_] := 1 - 0.5 x^2 You can use Epilog to add the thick line: RegionPlot[{y < f[x], f[x] < y < g[x], y > g[x]}, {x, 0, 2}, {y, 0, 2}, PlotPoints -> 50, Epilog -> (Plot[g[x], {x, 0, 2}, PlotStyle -> {Black, Thick}][[1]]), PlotStyle -> {Directive[Yellow, Opacity[0.4]], Directive[Pink, Opacity[0.4]],