Coder Social home page Coder Social logo

Add delete command about mercury HOT 6 CLOSED

mljar avatar mljar commented on May 17, 2024 1
Add delete command

from mercury.

Comments (6)

MarvinKweyu avatar MarvinKweyu commented on May 17, 2024 1

@pplonski So, mercury add my_notebook.ipynb adds a notebook. You run the command again, it adds the same notebook to the list and so forth. Should this be possible?

As well, before a delete command, should we have a listing of notebooks added? This command should be similar to add. List those notebooks in my current directory that have been added to the web then delete a specific one.

Feasibility? Or will this add complexity

from mercury.

pplonski avatar pplonski commented on May 17, 2024 1

@MarvinKweyu @propainter @aplonska it is possible to delete a notebook from the Mercury.

The command is:

mercury delete notebook_path.ipynb

The changes are now in the master branch. It will go to the version 0.3.0 (probably in the end of this week). To install package with new changes:

pip install -q -U git+https://github.com/mljar/mercury.git@master

Additionally, I've added list command to print out all notebooks. Example:

mercury list

from mercury.

propainter avatar propainter commented on May 17, 2024

I can look into it, though I have very little django knowledge 😅

from mercury.

pplonski avatar pplonski commented on May 17, 2024

The delete command should have a one parameter: the notebook path.

@propainter please take a look at the code and let me know if you can start with it.

from mercury.

MarvinKweyu avatar MarvinKweyu commented on May 17, 2024

@pplonski Observed here, I can add the notebook multiple times. How would this work exactly? Would it use a timestamp?
@propainter I could help if you need any assistance on the task.

from mercury.

pplonski avatar pplonski commented on May 17, 2024

@MarvinKweyu thank you for pointing out the problem with notebook duplicates, I've added a ticket for this #36

from mercury.

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.