Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<br>
<br>
<a href="https://dotnetfiddle.net/u901sI"><img src="https://img.shields.io/static/v1?label=Fiddle&message=Try%21&color=purple&style=flat&logo=.NET&labelColor=646"></a>
<a href="https://mybinder.org/v2/gh/asc-community/AngouriMathLab/try"><img src="https://img.shields.io/static/v1?label=Jupyter&message=Try%21&color=purple&style=flat&logo=Jupyter&labelColor=646"></a>
<a href="https://mybinder.org/v2/gh/asc-community/AngouriMath/master?labpath=Interactive.Sample.ipynb"><img src="https://img.shields.io/static/v1?label=Jupyter&message=Try%21&color=purple&style=flat&logo=Jupyter&labelColor=646"></a>
<a href="https://discord.gg/YWJEX7a"><img alt="Join our Discord" src="https://img.shields.io/discord/642350046213439489?label=chat%20with%20us&logo=discord&style=flat&labelColor=474&logoColor=white&color=252"></a>
<a href="https://github.com/quozd/awesome-dotnet"><img src="https://awesome.re/mentioned-badge.svg"></a>

Expand Down
5 changes: 2 additions & 3 deletions Sources/Samples/CSharp.Interactive.Sample.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,7 @@
}
],
"source": [
"#r \"nuget:AngouriMath.Interactive, *-*\" // installing the Interactive package\n",
"Interactive.magic() // run this code to register all interacting stuff"
"#r \"nuget:AngouriMath, *-*\""
]
},
{
Expand Down Expand Up @@ -180,7 +179,7 @@
"metadata": {},
"outputs": [],
"source": [
"MathS.Matrices.Matrix(new Entity[,]{\n",
"MathS.Matrix(new Entity[,]{\n",
"{ \"x / 2\", \"beta - 2^3\", \"e / sqrt(pi)\" },\n",
"{ \"epsilon\", \"integral(sin(k), k)\", \"e - pi\" },\n",
"})"
Expand Down
14 changes: 6 additions & 8 deletions Sources/Samples/Interactive.Sample.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
"metadata": {},
"outputs": [],
"source": [
"#r \"nuget:AngouriMath.Interactive, *-*\" // installing the Interactive package\n",
"Interactive.magic() // run this code to register all interacting stuff"
"#r \"nuget:AngouriMath.Interactive, *-*\""
]
},
{
Expand All @@ -16,9 +15,8 @@
"metadata": {},
"outputs": [],
"source": [
"open Functions\n",
"open Core\n",
"open Operators"
"open AngouriMath.FSharp.Core\n",
"open AngouriMath.FSharp.Functions"
]
},
{
Expand All @@ -42,7 +40,7 @@
}
],
"source": [
"parse \"x2 + sin(sqrt(x + 1/2)) + integral(sqrt(x + derivative(sin(y), y)), x)\""
"parsed \"x2 + sin(sqrt(x + 1/2)) + integral(sqrt(x + derivative(sin(y), y)), x)\""
]
},
{
Expand All @@ -66,7 +64,7 @@
}
],
"source": [
"differentiate \"x\" \"sqrt(sin(x) + 1 / (x + epsilon)) + e^(3x2)\""
"derivative \"x\" \"sqrt(sin(x) + 1 / (x + epsilon)) + e^(3x2)\""
]
},
{
Expand All @@ -90,7 +88,7 @@
}
],
"source": [
"solve \"x\" \"x > 0 and x ^ 2 = 9\""
"solutions \"x\" \"x > 0 and x ^ 2 = 9\""
]
}
],
Expand Down
28 changes: 28 additions & 0 deletions binder/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# The image mybinder.org builds for the README's "Try" button: Jupyter with the .NET Interactive
# kernels, and the sample notebooks from Sources/Samples. The notebooks install AngouriMath.Interactive
# from NuGet themselves. https://github.com/asc-community/AngouriMath/issues/1689
FROM quay.io/jupyter/base-notebook:2026-10-05

USER root
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends curl libicu-dev \
&& rm -rf /var/lib/apt/lists/*

# The .NET 10 SDK, which the dotnet-interactive tool targets.
ENV DOTNET_ROOT=/usr/share/dotnet \
DOTNET_CLI_TELEMETRY_OPTOUT=1 \
DOTNET_NOLOGO=1 \
NUGET_XMLDOC_MODE=skip
RUN curl -sSL https://dot.net/v1/dotnet-install.sh -o /tmp/dotnet-install.sh \
&& bash /tmp/dotnet-install.sh --channel 10.0 --install-dir ${DOTNET_ROOT} \
&& ln -s ${DOTNET_ROOT}/dotnet /usr/bin/dotnet \
&& rm /tmp/dotnet-install.sh

COPY Sources/Samples/Interactive.Sample.ipynb Sources/Samples/CSharp.Interactive.Sample.ipynb ${HOME}/
RUN chown -R ${NB_UID}:${NB_GID} ${HOME}

USER ${NB_USER}
ENV PATH="${PATH}:${HOME}/.dotnet/tools"
RUN dotnet tool install -g Microsoft.dotnet-interactive \
&& dotnet interactive jupyter install
WORKDIR ${HOME}
Loading