Incorporating livebook virtual file system that uses code blocks in markdown as files #2193
dantheobserver
started this conversation in
Ideas
Replies: 1 comment 2 replies
-
With Livebook main you can add files to the notebook in the sidebar, they are written into the Alternatively, you put the file contents in a multiline string and, if you think it's more convenient, define a smart cell with variable name and an editor for file contents. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
say I want to make a simple web server in livebook and want to reference html files or some other file format. Rather than have the code exist on the local file system or just have them as strings in my code, my idea is to have a kino function that will scan and fetch files from the local code blocks with special annotations as files. For example, I have a markdown block that contains the following
~BEGIN
Some text explaining this html's purpose
~END
And then my elixir code can do
Beta Was this translation helpful? Give feedback.
All reactions