Closed asukaminato0721 closed 10 months ago
tmp lack of time, closed.
current progress, I can see the result from logWrite
[Thu, 03 Aug 2023 00:03:12 GMT] Received the following data from kernel:
[Thu, 03 Aug 2023 00:03:12 GMT] Manipulate[
Block[{a=1.,n=8,θ=Pi/(2 n),e=Cos[θ],b=a Sin[θ]},
Graphics[{
Circle[{0,0},{a,b}],
Table[{If[Sin@#>Sin[θ],Circle[{-a Cos[θ] Cos[#],0},a Sin[θ] Sin[#]]]&/@
{2 i θ+t,t-2 (i-1) θ}},{i,n-1}]
},PlotRange->1.1a]
],{t,0,Pi/2}]
[Thu, 03 Aug 2023 00:03:12 GMT] Received the following data from kernel:
[Thu, 03 Aug 2023 00:03:12 GMT] Manipulate[
Block[{a = 1., n = 8, θ = Pi / (2 n), e = Cos[θ], b = a Sin[θ]},
Graphics[
{
Circle[{0, 0}, {a, b}]
,
Table[
{
If[Sin @ # > Sin[θ],
Circle[{-a Cos[θ] Cos[#], 0}, a Sin[θ
] Sin[#]]
]& /@ {2 i θ + t, t - 2 (i - 1) θ}
}
,
{i, n - 1}
]
}
,
PlotRange -> 1.1 a
]
]
,
{t, 0, Pi / 2}
]
[Thu, 03 Aug 2023 00:03:12 GMT] Failed to parse the following message:
[Thu, 03 Aug 2023 00:03:12 GMT] StringToByteArray[$Failed]
Now it works well when kernel is connected and format one cell at a time.
Currently, function
formatString
ispending to befinished. I find https://github.com/WolframResearch/codeformatter may work, but couldn't figure out how to make this api.Reference:
https://code.visualstudio.com/blogs/2016/11/15/formatters-best-practices#_the-formatting-api