Giter VIP home page Giter VIP logo

Comments (5)

mwouts avatar mwouts commented on August 25, 2024 1

I will come back with an example later on, but I expect that you should be able to set them in the same way we set 'style' in this paragraph: https://mwouts.github.io/itables/advanced_parameters.html#position-and-width

from itables.

mwouts avatar mwouts commented on August 25, 2024

Hi Daniel, thanks for asking.

My expectation is that you should be able to set these options on 'opt' as for the other global options (after 'import itables.options as opt').

Let me know if that works for you.

from itables.

daniel-fink avatar daniel-fink commented on August 25, 2024

Thanks Marc

I'm not sure what you mean by 'setting them on opt' as syntax.
e.g. opt(scrollY='450px', scrollX=True, scrollCollapse=True, paging=False) returns an error as it is not callable.

Could you give an example of what you mean?

Thanks

from itables.

daniel-fink avatar daniel-fink commented on August 25, 2024

Hi Marc. I haven't been able to find syntax that works; do those advanced parameters sit in the opt.style property with css-esque syntax (e.g. opt.style = "table-layout:auto;width:auto;scrollX:true"?) Do you have an example?

from itables.

mwouts avatar mwouts commented on August 25, 2024

Hi @daniel-fink , excuse me, I completely forgot to provide an example.

This is what I meant:

from itables import init_notebook_mode
import itables.options as opt

# Set these parameters as defaults in itables.show
opt.scrollY='450px'
opt.scrollX=True
opt.scrollCollapse=True
opt.paging=False

init_notebook_mode(all_interactive=True)

and then e.g.

from itables.sample_dfs import generate_random_df

df = generate_random_df(rows=100, columns=100)
df

will use these parameters:
image

I think this is what you wanted right?

from itables.

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.