mercury icon indicating copy to clipboard operation
mercury copied to clipboard

If the notebook is in sub folder the mercury will not accept it as valid app

Open kingabzpro opened this issue 2 years ago • 13 comments

image

kingabzpro avatar Feb 12 '22 09:02 kingabzpro

If I have three notebooks why it's saying I have 4 in the app? image

kingabzpro avatar Feb 12 '22 09:02 kingabzpro

How to I clear the cache?

kingabzpro avatar Feb 12 '22 09:02 kingabzpro

Hi @kingabzpro,

There are two issues that you reported:

  1. Problem with add notebook from sub folder. Have you manage to solve it? You should be able to add notebook from any path by specyfing the path to it.
  2. The issue with duplicates. Do you still have issue with duplicates? Can you provide steps to reproduce?

pplonski avatar Feb 12 '22 10:02 pplonski

I can share my deepnote link: https://deepnote.com/project/mljar-mercury-ROEC8Q3kThWGlmjp9eI1fQ

First run the server in terminal and then use incoming connecting link to run on Brower. image

kingabzpro avatar Feb 12 '22 10:02 kingabzpro

For the path, I think it should automatically pick the notebooks for the root directory. If its in the folder then it should tread it as a category. Let say, I have NLP web apps and its in the NLP folders, the app should consider folder as category. It's just a suggestion, nothing big.

kingabzpro avatar Feb 12 '22 10:02 kingabzpro

@kingabzpro I was able to run Mercury on Deepnote but I can't add a notebook to the Mercury - Deepnote doesnt support RAW cells. I was thinking about adding an option to define the YAML in the code cell as a comment https://github.com/mljar/mercury/issues/43 - what do you think?

What do you mean by category? You mean group all notebooks in categories? Just display categories first and then after category is selected display the notebooks?

pplonski avatar Feb 12 '22 10:02 pplonski

What do you mean by category? You mean group all notebooks in categories? Just display categories first and then after category is selected display the notebooks?

Yes, but grouping various notebooks into multiple categories. image

I am not sure #43, will improve the usability or not. But we can give a try. I do every thing in the cloud, so if it is cloud friendly, then I am in.

kingabzpro avatar Feb 12 '22 10:02 kingabzpro

Got it.

Where you able to add notebooks to Mercury in the Deepnote?

pplonski avatar Feb 12 '22 11:02 pplonski

I will try it later. I really like this project and I will wait for the cloud version where people can create profile and upload notebook as an app.

kingabzpro avatar Feb 12 '22 11:02 kingabzpro

@kingabzpro we don't plan to provide the cloud version. I would like to see Mercury as a self-hosted solution.

But we are open, if there will be many requests for cloud version then we will consider it.

pplonski avatar Feb 12 '22 12:02 pplonski

Got it.

kingabzpro avatar Feb 12 '22 14:02 kingabzpro

The folder issue is resolved: image

Thank you. But i still see extra file that I don't understand. Why is it there on first place?

kingabzpro avatar Feb 13 '22 10:02 kingabzpro

@kingabzpro it is hard to say, looks like some notebook without a YAML header that was accidentally added to Mercury.

You can remove the notebook with the command:

mercury delete notebook_path.ipynb

or you can remove it from Admin Panel. If you never used Admin Panel you need to create an admin user:

mercury createsuperuser

During creation, you can give the fake email address (it is not used anyway). After admin user creation you can log in to Admin Panel by going to 127.0.0.1:8000/admin. You need to log in with admin credentials. You will have access to the CMS (Content Management System) automatically generated by Django. You can select notebook there and delete.

pplonski avatar Feb 14 '22 08:02 pplonski