Closed robmarkcole closed 6 years ago
First thing you're probably best off using path_to_watch = os.path.abspath('test_folder')
.
As long as the following code has been run from IPython.display import display, Markdown
then you will be able to run the following:
markdown_string = "Watching folder {} for changes.".format(path_to_watch)
display(Markdown(markdown_string))
Thanks @SimonBiggs that puts the string in the python section (below), but it's not possible to put the string in the Markdown section?
The indent can be removed and the font can be the same? I was considering doing that anyway...
Would that achieve what you're after?
Actually there is a way... Your could write the following in line with your other text:
<code class="language-python">display(Markdown(your_variable))</code>
I'm not sure how it would style though.
Also, would something like the following be a way to solve your issue?
Hi @robmarkcole
I have removed the margin in the dev version with https://github.com/SimonBiggs/scriptedforms/commit/aed35b2fb40f81994f60407cfc5cf7225977e77c
Let me know if that solves this issue.
My apologies if this is documented already, I didn't find it.
I have a python variable (
path_to_watch = os.path.join(os.getcwd(), 'test_folder')
)which I wish to display within a body of Markdown text - is this possible? I was hoping to do the following: