I've just encountered a strange issue with google-colab notebooks I shared: After clicking, instead of opening the notebook in the Colab app, only raw code is displayed:
In some cases one could open the notebook by clicking on the link given on top of the picture. In other cases, the code had to be downloaded and then manually imported into Colab. I find this strange because previously I could simply click on the links and notebooks were correctly opened inside the Colab app. I've set sharing permissions appropriately so that anyone with the share link can view it.
Has there been a change to this or is this some sort of bug? Thanks!
It is because it is displayed using Drive Preview, if you click the 'open with Google Colaboratory', the code will be displayed normally.
Related
When I click on an ipynb file in Jupyter, a new tab opens but is completely blank. Nothing appears unless I manually refresh the browser page at least twice.
Try using Jupyter lab instead of Jupyter notebook. It'll load smoothly in lab.
I have a notebook which links to other, local notebooks. Something like this:
This is a series of tutorials about X.
Link to [Tutorial 1](tutorial1.ipynb)
Link to [Tutorial 2](tutorial2.ipynb)
...
This works fine in normal jupyter, but not in Google Colab. The links get resolved to URLs like this: https://colab.research.google.com/drive/tutorial1.ipynb which is obviously not where this notebook is.
Is there another way to have local links that works in Google Colab?
If the Notebook is only in Colab, then this works for my use case, maybe for you too:
Right click on the Notebook in the file list view (see below).
Select Get shareable link
Copy the link, and use that:
Link to [Tutorial 1](https://drive.google.com/open?id=12bdw7VdhRhGFw2463wJ)
(That's a made-up link so it doesn't work.)
On the other hand, if it's in GitHub, you can use the link this way — using one of mine (in this repo) as an example:
[My notebook](https://colab.research.google.com/github/agile-geoscience/xlines/blob/master/notebooks/11_Gridding_map_data.ipynb)
Here's that place where you can get a link:
If you shared a Google Drive folder full of notebooks and data files, then it seems like the best way forward is to instruct people to open the other file from the Google Drive tab. That way you are all still working on the same copies of notebook files, which seems like the big advantage of Colab. It's not a link, but it may be the best workflow and it also keeps your notebooks a bit more platform neutral.
For weeks I was able to start up the notebook in the Chrome browser. Now every time I start the notebook the page is completely blank, and when inspecting the console I get the error shown in the image below. I have no clue how to resolve this problem and so any help would be appreciated.
I'm using RSTudio Blogdown/Github/Netlify to maintain my blog site. I'm using the Acadmic theme. When I push the changed .RMD files to Github the changed pages do not seem to deploy but if I build the entire site and push it then the site deploys on Netlify without any problem. Unfortunately, it takes about three minutes to build the entire site, so I'm looking for a faster solution.
I think that I should be able to build a single directory, which would be super fast, but when I build a directory with this, blogdown::build_dir("content/project/cont_imp"), the HTML document does not build properly. It seems to render as a single long javascript and since all of the metadata in the YAML header is wrapped into the script the page on Netlify does not deploy properly, things like the date and subtitle are missing and it is not formatted like the rest of my site.
I have one bad page that I built with build_dir on GitHub so you can view both the .RMD source and .HTML rendered documents: https://github.com/grself/icochise/tree/master/content/project/cont_imp. You can see this project page on my live site at: https://icochise.com/ (scroll down to the "Projects" section and notice the difference between the "Continuous Improvement" link (no text there, just an image of a hand and a whiteboard) and the "Blogdown and Bookdown" link. I just now noticed that the HTML document seems to be some sort of self-extracting javascript so after a couple of seconds the source code looks normal. Maybe there is some kind of setting on Netlify I need to change so it will extract the javascript as it is deploying the page?
I checked the settings in my "Configure Build Tools" and unchecked "Preview site after building" and "Re-knit current preview..." but that didn't help. I also tried changing the Project build tools dropdown from "Website" to "Custom" and specified the Hugo executable. None of these things helped.
I also tried running "Serve Site" while I worked, thinking that would continuously render the HTML page, but that tool seemed to hang and would not display the site once I made changes to an .RMD file. In fact, it was hung up so badly that I had to kill RStudio with the Windows Task Manager.
Finally, I also tried to update Hugo, hoping that there was something fouled up in my Hugo install, but that did not help.
I suspect that I'm doing some simple thing wrong, but have tried everything I can think of to fix this and would appreciate any suggestions.
I ran Jupyter notebook from Windows 10 cmd, and I get web page in browser on localhost. Now, when trying to open one file (.ipynb, size 1KB) from menu,
I get blank browser, It looks like page is loading, but It never happens. What can be problem ?