R notebook loose images after a few days opened in Rstudio - r-markdown

I'm using Rstudio notebook to create nice Rmarkdown reports generated in html. Rstudio is opened during days on the same notebook, and sometimes all images disappear except those recently generated.
In the html, I see they are still existing, but it seem they are not correctly encoded, so probably impossible to read by Rstudio. Any suggestion ?

Related

Superset loading examples don't seem to disable

I am running Superset in docker. At first the example datasets, charts and so on were loading. After some time I decided to disable examples.
I changed the configuration to SUPERSET_LOAD_EXAMPLES=no in the .env file. I also tried to delete this key from .env. However, examples don't seem to disappear. How can they be deleted completely?
If you've run Superset once with SUPERSET_LOAD_EXAMPLES=yes, that will populate the example data and charts/dashboards into your metadata database alongside any actual charts and data. My understanding from searching the codebase is that there's no way to undo this.
If you really want those examples gone, you can start fresh from a new metadata db, but that would mean discarding any content you've created. Or you can try deleting the examples manually, either in the UI or in the database backend.
If you can't start fresh, my personal advice is to just ignore them. Eventually they'll get pushed to the bottom by your new content, and it's nice to have them in case you need to file a reproducible bug report example. I tried deleting some of them from the database backend and all I did was corrupt them so I get 500 errors when I try to load the examples.

AWS SageMaker Upload File but Download of Same File gets a 403 error

I am seeing a radical change in behavior from my AWS SageMaker account behavior today. I don't see any service warnings on the site but unfortunately I am in the trial period and can not get technical support.
So, I setup a simple test to see if someone has seen this and TIA for any suggestions on what I might try:
I can upload a file to my juypter notebook home directory. Upload is successful. File appears in the directory.
When I try to download the same file I just uploaded, I get the following error:403 : Forbidden
The error was: Blocking Cross Origin request from https://alpha-gold.notebook.us-east-1.sagemaker.aws/tree/
I can rename the file in the home directory.
I can run notebooks in the home directory.
I can down juypter notebooks as either notebooks are else as .html via the notebook menu options.
I CANNOT download a py file or png file - 403 error
I can load the py file into my notebook and it does works correctly.
I hope this is a transient condition. However, on the off chance this is something that is fixable, TIA.
This is due to Jupyter notebook. alternatively, you can open jupyterlab and then you should be able to download the files.
I am from SageMaker Notebooks team.
It was an issue on our end, we pushed a bad change. The change has been reverted. Please let us know if you are still seeing this issue.
Thanks,
Neelam
Thank you for using SageMaker.
This issue was related to Jupyter, which has been addressed and should not be occurring as of now.
Here is the GitHub issue for this problem: https://github.com/jupyter/notebook/issues/5067

Google cloud in browser ssh download dysfinctional

I am troubled with my in browser ssh download functionality of google cloud platform. It was working quite well until recently when I started to observe un expected behavour. Everytime I have attempted to download a file the progress bar shows as if something is downloading but after completing nothing is found in the downloads folder. I have tried to switch and log onto another os partition on my local machine. But still experience the same problem even when I changed browser program nothing seems working. Thanks in advance!
Google experienced an issue around the same time you reported the error. It has since been marked as resolved.
Are you still experiencing the same issue?
If that is the case, you can report it in the Issue Trackers platform.

Headless chrome cli in Production

I will be doing some pdf generation for my application. Currently, my plan is to create HTML using templates and convert them to PDF.
The pdf's aren't long. Maximum 3 pages. And approximately we will be making approx 100 docs in a day.
I was happy with the results I got from chrome --headless in my local machine. I called the cli command directly from my clojure code. So far so good. Looking at the number of wrappers available (Browserless, Chromeless, Puppeteer, ...) I'm not sure about the scalability factor in production.
Is it safe to use/call the chrome cli directly in production boxes?
What will I miss if I skip these wrappers?
My server side stack is Clojure/Compojure/Leiningen. Any insights/alternatives are appreciated.
I'm using Athena PDF for pdf generation in combination with Clojure:
https://github.com/arachnys/athenapdf
It has a REST interface. Since it runs in Docker its easy to scale.
Instead of detouring through html and chrome, I'd just use a pdf creating library such as clj-pdf. Here is a nice blog post about it.
p.s. If you dont mind running a third program to generate the pdf, I would have used emacs with org-mode (or heck, even writing it in elisp altogether) ;)

Jupyter Notebook does not support smileys in MARKDOWN cells

I'm Windows 10 (64-bit) user and I'm using Anaconda2 (Python 2.7).
I have created many gists (as Markdown .md file) on Github which supports almost all the smileys available in this Web page.
When I tried to use :smile:, :boom: etc. in Markdown cell of Jupyter Notebook, it did not work and it seems Jupyter Notebook does not support smileys.
Please suggest me if there's any way to fix this.
Thanks.
I also checked by visiting a lot many sites and found Jupyter Notebook does not support Github styled emojis.
#RajmaniArya suggested good way in the comment above.
And it brought me to use copy paste technique to use emojis in Markdown cells of Jupyter Notebook.
https://emojikeyboard.org and https://www.webpagefx.com/tools/emoji-cheat-sheet/ are also best to quick copy of emojis as we don't need to do copy paste things (Just one click is enough to copy).
Have a look on the below gif which clears it.
You can also visit http://getemoji.com/ suggested by #RajmaiArya and https://gist.github.com/rxaviers/7360908 to copy and paste emojis if you want other different kind of emojis.
Thanks.
Markdown in Jupyter notebooks doesn't support github-style :emoji: