Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[QUESTION]: Can .NET interactive be embedded in a Web Application? #800

Closed
rrekapalli opened this issue Sep 28, 2020 · 9 comments
Closed
Labels
question Further information is requested

Comments

@rrekapalli
Copy link

Hi there,

Does this library be embedded in a web application developed in ASP.NET/Angular/React?

Thanks

@jonsequitur
Copy link
Contributor

Yes. There are a number of packages on NuGet and you can see an embedding example in this sample.

@jonsequitur jonsequitur added the question Further information is requested label Sep 28, 2020
@colombod
Copy link
Member

colombod commented Sep 30, 2020

We are working on exposing the tools to configure your aspnet host with .NET Interactive in PR #802

@rrekapalli
Copy link
Author

Thank you!

@PawelStadnicki
Copy link

PawelStadnicki commented Jan 19, 2021

@colombod aspnet host PR mentioned above seems to be merged now however there is no sample yet/blog/tutorial about it?
Hosting dotnet-interactive on custom webpage is highly anticipated IMHO

@colombod
Copy link
Member

colombod commented Jan 19, 2021

@colombod aspnet host PR mentioned above seems to be merged now however there is no sample yet/blog/tutorial about it?
Hosting dotnet-interactive on custom webpage is highly anticipated IMHO

Consuming .NET Interactive from a web page is not hard to begin but crafting a good experience takes time. We do not have yet documentation or tutorial for it but you can take a peak at a simple demo I have built here.

That is not official sample and would love your feedback, maybe you could help building a simple demo?

@PawelStadnicki
Copy link

Thanks, I will try it.
Will it be supported to use other kernels too ? I guess that GitHub Codespaces has the same functionality as VS Code.
Wonder how much effort will be required to host on custom page same functionality as VS Code or GitHub Codespaces ( I assume that VS Code & Github Codespaces uses internal "notebook" support that must be adjusted for own purposes).

I can also guess that definitely there will be some blazor-flavour at some point.
I also know that MS internally uses some "trydotnetjs" that can also be public at some point
but grasping it all is hard without the full roadmap.

@colombod
Copy link
Member

Thanks, I will try it.
Will it be supported to use other kernels too ? I guess that GitHub Codespaces has the same functionality as VS Code.
Wonder how much effort will be required to host on custom page same functionality as VS Code or GitHub Codespaces ( I assume that VS Code & Github Codespaces uses internal "notebook" support that must be adjusted for own purposes).

I can also guess that definitely there will be some blazor-flavour at some point.
I also know that MS internally uses some "trydotnetjs" that can also be public at some point
but grasping it all is hard without the full roadmap.

You can already use any other kernel for .NET Interactive. That app has the same engine as the VSCode, Jupiter, and Jupiterlab integration. You can access the sharp, fsharp, powershell and js languages. To have same functionality as the code spaces you might want to look at the nteract SDK to create your frontend. Wiring up Monaco editor could be complex but I would not be surprised if the nteract ecosystem already has a Monaco integration

@GeorgeS2019
Copy link

GeorgeS2019 commented Oct 26, 2021

Is it feasible to make .NET interactive hostable within Blazor Webassembly so we could make .NET interactive sharing e.g. TorchSharp data science tutorials/examples available through Github Pages

@jonsequitur
Copy link
Contributor

A WASM-based kernel is feasible and is something we plan to investigate. Try .NET uses WASM today, so we'll look into building one or more new subkernels that can produce and run WASM along similar lines.

@dotnet dotnet locked and limited conversation to collaborators Jan 12, 2023
@jonsequitur jonsequitur converted this issue into discussion #2612 Jan 12, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

5 participants