Git Product home page Git Product logo

Comments (4)

tclements avatar tclements commented on September 28, 2024

This is something I would love to have! Manually writing updating TOML feels hackish and unreproducible at the moment. The create, delete and update syntax seems the best to me - I'd rather these operations be explicit.

from datasets.jl.

jvaverka avatar jvaverka commented on September 28, 2024

Love the questions being asked here, but I would add another related to

When creating a dataset it needs to be created within "some" data project. Presumably this would be the topmost project in the data project stack, or within a provided project if the project is supplied as the first argument.

Should it data projects be made more transparent as well?

While I know the functions DataSets.ActiveDataProject & DataSets.DataProject are provided I honestly did not think about the concept of a Data Project when first using this package. Maybe something in the Data REPL to show the active project (My Data Project) data> would make this more obvious. Maybe we also provide a Data REPL command to list the ones DataSets.jl knows are available.

command alias description
projects proj list all available data projects
project $name proj $name switch to $name data project

from datasets.jl.

c42f avatar c42f commented on September 28, 2024

Maybe something in the Data REPL to show the active project

We have this — I guess it's just badly named:

data> stack list
DataSets.StackedDataProject:
  DataSets.ActiveDataProject:
    (empty)
  DataSets.TomlFileDataProject [/home/chris/.julia/datasets/Data.toml]:
    📁 SomeDir    => 302a6dd6-d9e1-4487-8919-c520f08165be
    📄 SomeFile   => 97633d9c-afa8-4437-abd9-320cb4fdb270
    📁 TrueFX     => aa21c966-563e-42fb-ac3d-edaa3bdf3652
    📁 imagenet   => e73ae172-eeb0-4417-b3e1-007d42918752

Alternatively, we could make data> ls just show the full stack in this format by default? (The downside there is that duplicate names can occur with the topmost data project taking precedence. Which is why I used the current format for ls where deduplication has already happened.)

Current data REPL docs do mention this, and the stack command is findable via tab completion. But clearly it should be more discoverable, somehow.

data> ?
  DataSets Data REPL
  ====================

  Press > to enter the data repl. Press TAB to complete commands.

  Command          Alias   Action                                             
  –––––––––––––––– ––––––– –––––––––––––––––––––––––––––––––––––––––––––––––––
  help             ?       Show this message                                  
  list             ls      List all datasets by name                          
  show $name               Preview the content of dataset $name               
  stack            st      Manipulate the global data search stack            
  stack list       st ls   List all projects in the global data search stack  
  stack push $path st push Add data project $path to front of the search stack
  stack pop        st pop  Remove data project from front of the search stack 

from datasets.jl.

jvaverka avatar jvaverka commented on September 28, 2024

This works perfectly. My tired eyes / brain just looked right over it. Thanks for clarifying!

from datasets.jl.

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.