dotnet / csharp-notebooks

Get started learning C# with C# notebooks powered by .NET Interactive and VS Code.
MIT License
951 stars 325 forks source link

E2E-Classification with Iris Dataset.ipynb -> 'NotebookMonitor' could not be found #81

Open jeffsdata opened 9 months ago

jeffsdata commented 9 months ago

I tried running the "machine-learning/E2E-Classification with Iris Dataset.ipynb" file, and received the following error:

The type or namespace name 'NotebookMonitor' could not be found (are you missing a using directive or an assembly reference?)

Versions of things:

Tried searching for that object on the internet and it's used around this repo, but for me, it doesn't work in any of the. I also tried changing the Polyglot extension to "Release" and that didn't do anything. I also tried upgrading Microsoft.ML and Microsoft.ML.AutoML to the most recent versions (2.0.1, 0.20.1, respectively) and that didn't work.

I was able to get around the error by just removing the monitor, but that's not fun!

E2E-Classification with Iris Dataset.ipynb image

E2E-Forecasting using Autoregressive with Luna Dataset.ipynb image

LittleLittleCloud commented 9 months ago

The notebook monitor code lives here https://github.com/dotnet/machinelearning/blob/09b80f8a08340dc7d79ac75e13c722313f0845eb/src/Microsoft.ML.AutoML.Interactive/NotebookMonitor.cs

And it should be loaded via Microsoft.ML.AutoML.Interactive.dll. I assume the loading fails though because it seems that Microsoft.ML.AutoML.Interactive targets to an old Microsoft.DotNet.Interactive version which might contains API break change

LittleLittleCloud commented 9 months ago

@jeffsdata The fix is merged, you can now target to mlnet nightly build to use NotebookMonitor