Skip to content
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

FSLab page out of date, not working #546

Open
KPMTGG opened this issue Feb 18, 2022 · 1 comment
Open

FSLab page out of date, not working #546

KPMTGG opened this issue Feb 18, 2022 · 1 comment

Comments

@KPMTGG
Copy link

KPMTGG commented Feb 18, 2022

The Deedle in 10 minutes using F# page does not work in the sections that use FSharp.Charting.

For example, about half way down the page is this code:

Chart.Combine
  [ Chart.Line(msft?Difference |> Series.observations) 
    Chart.Line(fb?Difference |> Series.observations) ]

This section is easily fixed by the following change:

open Plotly.NET.Interactive

Chart.combine
  [ Chart.Line(fb?Difference  |> Series.observations) 
    Chart.Line(msft?Difference    |> Series.observations) ]

However, there are other charts that fail that I do not know how to fix.

@Arlofin
Copy link
Contributor

Arlofin commented Oct 4, 2023

This might be due to your project targetting .Net Core (either directly or disguised as net5.0+), while at the same time using the traditional FSharp.Charting package, which supports only the .Net Framework. There is a port to .Net Core that goes under the name of FW-FSharp.Charting.Core. Using this might resolve your issue.
There are other parts of the FSLab page that are outdated, however. E.g. the quick start tutorial fails on the first line on modern installations, since there is typically no packages folder in the project folder anymore from which packages could be read from: The NuGet package manager now caches packages in the .nuget folder in the user directory. The typical way to load them would be by specifying #r "nuget: <Package ID>". This is not entirely equivalent, however: I have so far not figured out how to register the Deedle pretty printing (coming through Deedle.fsx) in a user-independent fashion with standard NuGet.
An up-to-date quick start tutorial is in my view essential to make Deedle attractive for beginners.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants