Code Monkey home page Code Monkey logo

Comments (2)

wilhelmagren avatar wilhelmagren commented on June 9, 2024

We can't have logging to terminal at the same time as tqdm
https://www.reddit.com/r/learnpython/comments/slds6h/tqdm_keeps_printing_progress_bar_to_new_line/

from finq.

wilhelmagren avatar wilhelmagren commented on June 9, 2024

When running in notebook the logging and tqdm works together:

[2023-10-15 14:16:32,181] [finq.datautil.nasdaq_requests] [INFO	] performing GET request to: `https://indexes.nasdaqomx.com/Index/ExportWeightings/OMXS30`
[2023-10-15 14:16:32,182] [finq.datautil.nasdaq_requests] [INFO	] with query parameters: `{'tradeDate': '2023-10-13T00:00:00.000', 'timeOfDay': 'SOD'}`
[2023-10-15 14:16:32,182] [finq.datautil.nasdaq_requests] [INFO	] with headers: `{}`
[2023-10-15 14:16:33,353] [finq.datautil.nasdaq_requests] [INFO	] 200 OK
[2023-10-15 14:16:33,355] [finq.datautil.nasdaq_requests] [INFO	] attempting to read excel at `qyfanqaiiu-OMXS30.xlsx`...
[2023-10-15 14:16:33,557] [finq.datautil.nasdaq_requests] [INFO	] OK!
[2023-10-15 14:16:33,559] [finq.datasets.dataset] [DEBUG	] will save fetched data to path `.data/OMXS30`
[2023-10-15 14:16:33,560] [finq.datasets.dataset] [DEBUG	] will handle missing values according to strategy `interpolate`
Fetching `VOLV-B.ST`	 data from Yahoo! Finance: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 30/30 [00:00<00:00, 46.00it/s]
[2023-10-15 14:16:34,220] [finq.datasets.dataset] [DEBUG	] validating `.data/OMXS30` path...
[2023-10-15 14:16:34,220] [finq.datasets.dataset] [DEBUG	] trying to create your specified save path...
[2023-10-15 14:16:34,221] [finq.datasets.dataset] [DEBUG	] OK!
[2023-10-15 14:16:34,221] [finq.datasets.dataset] [DEBUG	] creating path `.data/OMXS30/data`...
[2023-10-15 14:16:34,222] [finq.datasets.dataset] [DEBUG	] OK!
[2023-10-15 14:16:34,222] [finq.datasets.dataset] [DEBUG	] creating path `.data/OMXS30/info`...
[2023-10-15 14:16:34,223] [finq.datasets.dataset] [DEBUG	] OK!
[2023-10-15 14:16:34,223] [finq.datasets.dataset] [DEBUG	] saving fetched data to `.data/OMXS30`
[2023-10-15 14:16:34,341] [finq.datasets.dataset] [DEBUG	] OK!
[2023-10-15 14:16:34,342] [finq.datasets.dataset] [DEBUG	] using missing values strategy: `interpolate`
Fixing `VOLV-B.ST`	 missing values: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 30/30 [00:00<00:00, 1017.23it/s]
[2023-10-15 14:16:34,389] [finq.datasets.dataset] [DEBUG	] the following symbols had missing data: `ABB.ST,ALIV-SDB.ST,AZN.ST`
[2023-10-15 14:16:34,389] [finq.datasets.dataset] [DEBUG	] OK!
[2023-10-15 14:16:34,390] [finq.datasets.dataset] [DEBUG	] verifying that stored data has no missing values...
Verifying `VOLV-B.ST`	 no missing values: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 30/30 [00:00<00:00, 690.25it/s]
[2023-10-15 14:16:34,437] [finq.datasets.dataset] [DEBUG	] OK!

Look into if there is some specific setting on consoleHandler in logger module

from finq.

Related Issues (15)

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.