Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escaping: Escape characters +-&|!(){}[]^"~*?:\ with \, e.g. \+
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Answered
Hi All, I'M Trying To Use The Relatively New Jupyter Preview Feature But For Some Reason I Have The Notebook Artifact Under Artifacts But The Preview Is Unavailable.. Am I Missing Some Needed Steps? Thanks!

Hi All, I'm trying to use the relatively new jupyter preview feature but for some reason I have the notebook artifact under artifacts but the preview is unavailable..
am I missing some needed steps? thanks!

  
  
Posted 3 years ago
Votes Newest

Answers 30


Hi RipeGoose2
Can you try with the latest from git ?
pip install -U git+

  
  
Posted 3 years ago

🤞

  
  
Posted 3 years ago

that was never a problem.. before the new copy wasn't uploaded.. I'm still not sure what you referring to

  
  
Posted 3 years ago

The fact the html file does not refresh in the browser even though there is a new copy of it uploaded.

  
  
Posted 3 years ago

Let me ping you back when the GitHub repo is synced, so you can test the latest and greatest :)

  
  
Posted 3 years ago

or actually the local html, I believe it should work for a mounted s3

  
  
Posted 3 years ago

in order to have an automatically updating preview

  
  
Posted 3 years ago

(RC will be out in a few days)

  
  
Posted 3 years ago

the report media workaround I suggested was referring to having the preview directly in the debug_samples of the given task

  
  
Posted 3 years ago

RipeGoose2 you mean to have the preview html on S3 work as expected (i.e. click on it add credentials , open in a new tab) ?

  
  
Posted 3 years ago

Thanks AgitatedDove14 , we have no issue with "html stuck in cache" I'm not sure what are you referring to..

  
  
Posted 3 years ago

so if I wait a few minutes I will be able to get the latest version?

  
  
Posted 3 years ago

That's the theory, I still see it is not there

  
  
Posted 3 years ago

there is probably some way to make an S3 path open up in the browser by default

You should have a pop-up asking for credentials ...
Could you check that if you add the credentials in the profile page it works ?

  
  
Posted 3 years ago

Hi RipeGoose2
Just to clarify, the issue with the html stuck in cache is a UI, thing, basically the webapp needs to tell the browser not to cache the artifacts, it has nothing to do with how the artifacts are created.
Regardless we love improvements so feel free to mass around with the code and PR once you get something useful 😉
Specifically this is where the html conversion happens
https://github.com/allegroai/clearml/blob/9d108d855f784e1fe7f5691d3b7bf3be64576218/clearml/backend_interface/task/repo/scriptinfo.py#L394

  
  
Posted 3 years ago

that would be great, thanks a lot!

  
  
Posted 3 years ago

AgitatedDove14 after a small test run we done, we get some issues with the proposed approach
I think it works as far as what you mentioned is concerned, there is a dynamic link in the debug samples that downloads the html file when we try to view it, and it is updated according to the notebook
However we access our server from a limited networking machine that can only access AWS ips, and the HTML file is not a standalone and has some dependencies that require networking.. so can only be viewed on an online machine..
It is quite unfortunate for us, we will be happy if we can figure out a different workaround that gives an up-to-date standalone preview logging

  
  
Posted 3 years ago

AgitatedDove14 seem to work in terms of updating the file which is great! the notebook HTML preview seem not to work though.. I guess you are aware of it because the displayed text is saying something like click the link to view the file

  
  
Posted 3 years ago

so actually in our case we have an S3 link, but when downloading it, it seems correct.. there is probably some way to make an S3 path open up in the browser by default

  
  
Posted 3 years ago

we just found it out ourselves , https://github.com/jupyter/nbconvert/issues/754

  
  
Posted 3 years ago

RipeGoose2 yes, the UI cannot embed the html yet, but if you go click on the link itself it will open the html in a new tab.
Could you verify it works ?

  
  
Posted 3 years ago

The "notebook preview" link doesn't pop-up the s3 credentials, however the "notebook" artifact when clicking on the download button does show this pop up
they actually seem to be different in the way that the UI server is showing them.. one is a link (the html) and has no pop up, the other one (.ipynb) is a text with a download button in the end of the string which does show the mentioned pop up

  
  
Posted 3 years ago

I'm checking the preview HTML and it seems like it was not uploaded...

  
  
Posted 3 years ago

AgitatedDove14 , as a temporary workaround, I was wondering how hard would it be to actually use the callback mechanism and manually register the notebook html with something like
Logger.current_logger().report_media("html", "url_html", iteration=iteration, url=" ")?

  
  
Posted 3 years ago

do you happen to have some reference snippet to create such a callback? I am only familiar with:
from clearml.binding.frameworks import WeightsFileHandler

  
  
Posted 3 years ago

RipeGoose2 yes that will work 🙂
That said, we should probably fix the S3 credentials popup 😉

  
  
Posted 3 years ago

Hi AgitatedDove14 , can you please point me to the source code where the Jupyter save hook is defined? I am considering some custom workaround

  
  
Posted 3 years ago

RipeGoose2

HTML file is not a standalone and has some dependencies that require networking..

Really? I thought that when jupyter converts its own notebook it packages everything into a single html, no?

  
  
Posted 3 years ago

sounds like a cool option.. I'll give it a try. thanks

  
  
Posted 3 years ago

Oh I do not think this is possible, this is really deep in a background thread.
That said we can sample the artifacts and re-register the html as a debug media:
url = Task.current_task().artifacts['notebook preview'].url Task.current_task().get_logger().report_media('notebook', 'notebook', iteration=0, url=url)Once the html is uploaded, it will keep updating on the same link so no need to keep registering the "debug media". wdyt?

  
  
Posted 3 years ago
1K Views
30 Answers
3 years ago
one year ago
Tags