cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to access a variable in markdown cells?

bdc
New Contributor III

I saw a similar question in a discussion 5 years ago and back then this option was not available.

https://community.databricks.com/s/question/0D53f00001HKHhNCAX/markup-in-databricks-notebook

I wonder if this feature has been added. It is possible to do it in Jupyter but notebook help page in databricks doesn't show such feature.

I think this is a beneficial add-on in case it doesn't yet exist because sometimes you don't wanna copy paste static values from one run and update it in every run in the markdown.

If it does exist, I'd appreciate if you can share the solution with me.

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions

Kaniz
Community Manager
Community Manager

Hi @asieh harati​ , If you want a new feature to be added here, you can request the feature here at this link:-https://docs.databricks.com/resources/ideas.html

View solution in original post

6 REPLIES 6

Anonymous
Not applicable

Howdy!

My name is Piper and I'm one of the community moderators. Thank you for your question. Let's see how the community responds first and then we'll see if we need the team to follow up.

User16829050420
New Contributor III
New Contributor III

Thanks for your request. Have you already tried this magic command mentioned in the docs?

https://docs.databricks.com/notebooks/notebooks-use.html

bdc
New Contributor III

@Ashwinkumar Jayakumar​  I have. The magic command is not for this purpose. In one cmd you can only use one magic command: %md, %python, etc. and only in the beginning of the command.

To reiterate, I want to use a variable in a markdown cmd (a cmd that I start with %md) that I have already defined in my notebook code cmd.

Kaniz
Community Manager
Community Manager

Hi @asieh harati​ , If you want a new feature to be added here, you can request the feature here at this link:-https://docs.databricks.com/resources/ideas.html

bdc
New Contributor III

When I click on the feedback link under workspace/help, it opens a page with page not found. db feedback page

Kaniz
Community Manager
Community Manager

Hi @asieh harati​ , Please try here:- https://feedback.azure.com/d365community

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.