Code Monkey home page Code Monkey logo

Comments (3)

tpetricek avatar tpetricek commented on May 28, 2024

I did not know (or did not realize) this was possible. This is much nicer than messing with loader script!

The only issue is that the output can vary a little. Sometimes you'll get:

val it : Series<int, int> = Your
multiline 
string

and sometimes you'll get

val it : Series<int, int> = 
    Your
multiline 
string

It apparently depends on the type name - if it is too long, then F# adds linebreak and spaces on the next line. The Format members always add \n so things are aligned correctly, but sometimes there is a blank line. Still, I think this is better.

Also, I think not hiding the Format member is fine - it is quite useful for debugging, even in C#. I did not add it as ToString because I think ToString should return some shorter info - perhaps just size & column names or something like that.

Keeping this open as we still need to add ToString.

from deedle.

hmansell avatar hmansell commented on May 28, 2024

I agree that a ToString should include just some concise info.

I think it is bad for Format to be a property and not somehow hidden from the debugger, because you can end up with a large dataframe that screws up your debugger because it is producing a massive string when you explore its properties.

from deedle.

tpetricek avatar tpetricek commented on May 28, 2024

I tried using StructuredFormatDisplay but that has other problems - in particular, the FSI does not call functions registered using fsi.AddPrintTransformer on the type when it has the attribute.

This is used by internal BM tool that adds visualizer for all variables defined in FSI - so we need it for internal reasons (but it would be nice to have similar tool as open-source, so it makes sense to avoid closing that option too).

So I'm reverting this back to IFsiFormattable with a load script...

from deedle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.