Skip to content

Latest commit

Β 

History

226 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

CSharpPlayground (FrySharp)

CI Microsoft Store Homebrew License: MIT .NET Avalonia UI Sponsor

CSharpPlayground (standalone executable: FrySharp) is an interactive multi-language code studio, polyglot Jupyter-style notebook environment for .NET 10, Python, Rust, and extensible language toolchains built with Avalonia UI.

It operates both as:

  1. A Standalone Desktop Application (FrySharp): Native desktop app for macOS (.dmg) and Windows (.msix / .exe installer) with VS Code-inspired layout.
  2. A FryPDF Ecosystem Plugin (com.frypdf.plugin.csharpeditor): Edge-to-edge full-viewport workspace and code automation plugin for FryPDF.

🎬 Product Demo

FrySharp Demo: Run C#, Python, Rust, Go, Java, C++, JS, F# & SQL in ONE Unified Notebook & IDE

Click here to watch the FrySharp Demo on YouTube β€” Supports C#, Python, Rust, Go, Java, C++, JavaScript, F# & SQL


πŸ“¦ Installation

macOS (via Homebrew)

# Add the tap and install FrySharp
brew install --cask prashantunity/tap/frysharp

To update when a new version is released:

brew upgrade --cask frysharp

Windows (via Microsoft Store)

Get FrySharp from the official Microsoft Store:


πŸš€ Quick Start (Build from Source)

Prerequisites

Run Standalone Desktop App (FrySharp)

# Clone the repository
git clone https://github.com/PrashantUnity/CSharpPlayground.git
cd CSharpPlayground

# Run standalone desktop app
dotnet run --project Runner/CSharpEditorPlugin.Runner.csproj

Run Automated Unit Tests

# Run the unit tests (the real-Python ones run when Python 3.9+ is installed)
dotnet test CSharpEditorPlugin.slnx

πŸ— Architecture: Stateful Notebook Execution

flowchart TD
    subgraph Notebook UI
        C1["Cell 1: var m = 10;"]
        C2["Cell 2: Console.WriteLine(m * 2);"]
        C3["Cell 3: Display.Image(surface.Snapshot());"]
    end

    subgraph "NotebookExecutionKernel (Persistent Session)"
        Init["ScriptOptions\n(System Refs + NuGet Refs + Usings)"]
        S0["Submission #0: ScriptState\n(Creates 'm' field, Output = 10)"]
        S1["Submission #1: ScriptState.ContinueWithAsync\n(References S0, Reads 'm', Output = 20)"]
        S2["Submission #2: ScriptState.ContinueWithAsync\n(References S1, Rich Media Display)"]
        VarExp["Variable Inspector State\n[m : int = 10]"]
    end

    subgraph Rich Cell Output
        Out1["Text Output / Badge"]
        Out2["Console Output: 20"]
        Out3["Avalonia Image Control\n(Zoom, Copy, Save PNG)"]
    end

    C1 -->|"Execute Cell"| S0
    S0 -->|"State Chaining"| S1
    C2 -->|"Execute Cell"| S1
    S1 -->|"State Chaining"| S2
    C3 -->|"Execute Cell"| S2
    
    S0 --> VarExp
    S1 --> VarExp
    S2 --> VarExp

    S0 --> Out1
    S1 --> Out2
    S2 --> Out3
Loading

πŸ’– Sponsor & Support

How Your Sponsorship Works: A Scientific Flowchart

The Scientific Sponsorship Loop:

  1. You Fund πŸ’Έ βž” 2. I Buy Food πŸ• βž” 3. Eat & Stay Healthy 🍜 βž” 4. Code & Ship Features πŸš€ (Alternative timeline: No food βž” Dev dies πŸ’€ βž” Zero commits πŸͺ¦)

If you find FrySharp (CSharpPlayground) helpful, consider keeping the developer fueled and alive:

πŸ‘‰ Sponsor @PrashantUnity on GitHub


πŸ“œ License

MIT License. See LICENSE for details.

About

Interactive Notebook β€” an early-stage development project focused on building an interactive, extensible notebook environment for experimenting with code, visualization, and developer workflows. 🚧 Early-stage development 🎯 Target completion: June 2028

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Sponsor this project

Used by

Contributors

Languages