Question

I have an iPython notebook with many links to a sharepoint file set within markdown. It is likely that the base location of the files will change at some point in the future. Ideally, I could programatically set the links based on a base directory in anticipation. To explain with an example:

[file.pdf](http://collaboration.us.ZZZ/XX/YYY/SDIR1/SDIR2/SDIR3/file.pdf)

"http://collaboration.us.ZZZ/XX/YYY/" will likely change in the future and ideally, this could be defined in a variable. There are many links to files located in this base directory. Perhaps a search and replace on the json files is the only option. Is there anything else that I can do in anticipation of the base location changing?

Thanks!

Was it helpful?

Solution

Is the base location relative to where the notebook is hosted ? if so you can use the file/ prefix for know. Ohterwise I would suggest just displaying HTML in a codecell. Programmatically altering markdown is not (yet) possible, but we are thinking of that.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top