Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    matrixbot
    @matrixbot
    antilibrary yeah I checked that
    antilibrary hopefully the feature will be improved in time
    Red S
    @redstreet
    Is it possible to set hover text for individual cells of querytable or tree? If not, what it would it take to able to do that?
    Red S
    @redstreet

    in an extension, how do i add a chart to a template? as a test case, i tried doing:
    {% import "_charts.html" as charts with context %}
    {{ charts.hierarchy(ledger.options['name_assets']) }}

    but that doesn't show anything at all.

    Jakob Schnitzer
    @yagebu
    @redstreet: To set the hover text, use the title HTML attribute
    Jakob Schnitzer
    @yagebu
    These macros in the _charts.html template don't output anything but just add that chart to a list. Probably, when rendering the extensions this doesn't transfer to the main template and hence the default empty list of charts is used. Don't know if that can easily be worked around or if the way the chart data is transferred would need to be changed.
    Red S
    @redstreet
    hover: perfect, thanks
    charts: thanks for pointer, i'll dig into it and submit a fava PR if needed
    Red S
    @redstreet

    @yagebu {{ charts.chart_data }} evaluates correctly within an extension.
    application.py for extension_report() includes these lines:
    344 return render_template( "_layout.html", content=content, page_title=extension.report_title)

    and _layout.html contains:
    <script type="application/json" id="chart-data">{{ charts.chart_data|tojson|safe }}</script>

    however, i'm still not seeing the chart itself by inserting the lines in the template i mentioned yesterday. any pointers?
    Red S
    @redstreet
    Completely different topic:
    Extension methods have begin and end arguments like so:FavaExtensionBase.extensionname(self, begin=None, end=None)
    1) These arguments are presumably dates? Do they come from the user selecting dates in the data selector in the UI? If I set them though, they're still None when my extension is called. What gives?
    2) What's the calling method that sets them? Stack trace takes me to jinja, which can't be it
    3) How should I be using these dates if I'm running a query via FavaExtensionBase.ledger.query_shell.execute_query ?
    Jakob Schnitzer
    @yagebu
    @redstreet: As I said, this probably due to these two templates not sharing the same template context
    You define extensions methods, so they have whatever arguments that you want them to. I don't really see where you get that method signature from.
    laurahki
    @laurahki

    hi, I have a question related to expenses aggregation and budget in fava: say that I have a number of expenses categories named Expenses:John:Media, Expenses:John:Groceries, Expenses:John:Clothing.

    Additionally, I have a budget set for Expenses:John (using custom "budget").

    In the Expenses view of fava, the aggregation per period (say quarter), does not seem to aggregate by sub-category in relation to the main category.
    In other words, I would like to see the sum of all expenses for John compared to the set budget but I only see the subcategories spend but no use of the overall budget for John. I hope it makes sense :)

    Thanks!
    laurahki
    @laurahki
    fava
    Red S
    @redstreet
    @yagebu what should I do to make the graph work?
    Red S
    @redstreet
    Extension: the included example in fava has (None, None) hardcoded for begin and end params. This is a bit confusing (why include params if they're going to be hardcoded by the caller?). I'd recommend removing it. What do you think?
    @yagebu on the chart issue: can you add a chart to the example portfolio_list extension included with fava please?
    Red S
    @redstreet
    That would be super helpful and might encourage other extension writers too
    Jakob Schnitzer
    @yagebu
    @laurahki: You need to collapse the row by clicking in the box surrounding the account name. Fava only shows the aggregated balances and budgets directly if that account has no balance or budget of its own so that you can distinguish the balance/budget and the aggregated balance/budget.
    @redstreet: Including <script type="application/json" id="chart-data">{{ charts.chart_data|tojson|safe }}</script> in your extension template could work. But please do note that this might break, I consider the charts an internal implementation detail and want to keep the freedom to modify how they work.
    Jakob Schnitzer
    @yagebu
    A PR to improve the portfolio_list extension would be welcome of course :)
    Red S
    @redstreet
    PR is out :)
    Red S
    @redstreet

    @yagebu thanks a bunch for the chart pointers; i got the chart for asset allocation working in the extension! With a custom data structure instead for asset class percentages too.

    Fair point on charts being an internal implementation detail.

    Red S
    @redstreet
    Adam Gibbins
    @adamgibbins
    that looks awesome
    adamgibbins @adamgibbins adds to todo list
    Red S
    @redstreet
    👍 the sunburst chart works really well for this case since asset allocation is hierarchical.
    Minghao Liu
    @molikto
    @yagebu hello! currently I am working on an beancount app for Android and I found out your tree-sitter parser here https://github.com/yagebu/tree-sitter-beancount
    have you considered relaxing some lexing rules for Beancount? Like for example support Unicode Account names, tags, and currencies. I think the original syntax for Beancount has a lot of restrictions because it's a lex-then-parse parser. but TreeSitter have context-aware-lexing
    Jakob Schnitzer
    @yagebu
    @molikto: That parser is only used in an experimental branch of Fava so far. I don't have any concrete plans to submit it to Beancount - the Beancount parser is still a bit faster for single parsing runs, however in Fava with caching the tree-sitter parser could be faster. Beancount already supports Unicode in account names and I probably also prefer a stricter syntax for tags and currencies, so I didn't consider any changes there.
    Simon Michael
    @simonmichael
    oh hi. Is this where beancount chatters hang out ? I'm usually in freenode #beancount
    similar size, but this room seems a lot more active
    oh, excuse me. This one is for fava.
    m20a
    @m20a_gitlab
    Hi Beancounters,
    I am looking for a way to brake expenses that I pay yearly so that it shows in the report as monthly expenses.
    For e.g. I am paying my gym membership yearly and I want to see how much that cost me monthly, if you know what I mean. Is there any way to do this in either fava or the beancount file?
    m20a
    @m20a_gitlab
    This is very helpful thanks.
    Martin Blais
    @blais
    Hello Beancounters
    matrixbot
    @matrixbot
    xuhcc Hi!
    vinit khandagle
    @vini_tux_twitter
    Hello Beanounters. Good to be here. Just learning how Fava works!!
    Prafulla T
    @prafullat
    hi, Please review : beancount/fava#1118
    @yagebu
    m20a
    @m20a_gitlab
    Hey Beancounters, I have been experementing with the Querey option in fava and now I have a list of commands that I don't really need.
    *Query
    is there any option to delete them ?
    Adam Gibbins
    @adamgibbins
    Everything fava does is manipulate your beancount files, your queries are in there, you can just delete them
    oh you mean on the query screen the remembered queries you've run? That's in your browsers local storage, you can just clear that
    m20a
    @m20a_gitlab
    uh cool I thought it is storing it somewhere. Stupid me didn't try to clear my browser