Giter Club home page Giter Club logo

Comments (6)

jtemporal avatar jtemporal commented on August 30, 2024 1

since #114 was merged I'm closing this one! Thanks everyone :)

from serenata-toolbox.

cuducos avatar cuducos commented on August 30, 2024

Hi @luipillmann,

Can you provide more detail abou the code you're running?

Also I'm not sure what you mean by running Jupyter notebooks in serenata-de-amor/develop: if you're running jupyter notebook from that directory that is not how we thought things would work. Run jupyter notebook from the root, not from develop/ (or, if you really want to run from develop/, copy config.ini from root to there).

BTW do you have a config.ini in the root of the project?

from serenata-toolbox.

lpillmann avatar lpillmann commented on August 30, 2024

Hi, @cuducos.

We were running jupyter notebook from the root, where the config.ini file was placed (its content was copied from the example .ini).

What I meant is that the .ipnb files were run from develop/. It seems the program expects config.ini to be in the same folder where notebooks are.

We suppose it has something to do with line 12 in datasets/remote.py

from serenata-toolbox.

cuducos avatar cuducos commented on August 30, 2024

Ow…got it. Makes sense.

This should fix it:

class RemoteDatasets:
   
    CONFIG = 'config.ini'

    def __init__(self, config=None):
        self.credentials = None
        self.config = config or self.CONFIG

And replace self.CONFIG by self.config.

Sorry I can't open a PR right now, but probably something among these lines could fix. Feel free to open a PR.

On other news we could get rid of a config file and go for envvars. I initially opted to keep the config file because it was there already, but maybe this is not the best strategy. What do you think @jtemporal?

from serenata-toolbox.

caiopo avatar caiopo commented on August 30, 2024

Hi,

I talked to @luipillmann here at the sprint about having a default configuration file to be opened if a custom config.ini could not be found.

One of the main reasons of doing this would be that most toolbox's use cases don't require a custom config.ini, the default values work fine unless you need to upload something.

from serenata-toolbox.

cuducos avatar cuducos commented on August 30, 2024

One of the main reasons of doing this would be that most toolbox's use cases don't require a custom config.ini, the default values work fine unless you need to upload something.

👍

from serenata-toolbox.

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.