Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
haganistic
Frequent Visitor

computational notebook (like R markdown) for M langauge?

Is there any computational notebook that can be used to save/ execute M langaugge commands? It will be helpful for learning and sharing queriying techniques.

1 ACCEPTED SOLUTION
BA_Pete
Super User
Super User

Hi @haganistic ,

 

I guess you're thinking of something like Jupyter or similar. I don't think there's anything like this yet for M code.

 

Personally, I use Notepad++ for storing/saving M code. You can get an M code add-on which formats your code in M style.

I also use Dataflows in the Service for an online repository which is actually connected to data sources, and for executing code when I don't have a PBIX to hand.

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




View solution in original post

5 REPLIES 5
BA_Pete
Super User
Super User

Hi @haganistic ,

 

I guess you're thinking of something like Jupyter or similar. I don't think there's anything like this yet for M code.

 

Personally, I use Notepad++ for storing/saving M code. You can get an M code add-on which formats your code in M style.

I also use Dataflows in the Service for an online repository which is actually connected to data sources, and for executing code when I don't have a PBIX to hand.

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




That's a good idea, using dataflows as a repository.

I just wanted to add, similar to Notepad++, I use VS Code and a Power Query formatting extension. I keep my functions and snippets in text files with .pq file extension and store in a Git repo.

Yeah, the Dataflows thing is good but not very scalable unfortunately. If you share a Dataflow with someone else, they can also access it, but each person needs to 'take over' ownership of it every time they want to access the actual M code of the queries.

 

I've seen that VS Code before but never really looked into it.

- I presume it allows you to connect to a source and write M directly on it?

- Does the M extension include Intellisense?

 

Pete

Yeah, the Dataflows thing is good but not very scalable unfortunately. If you share a Dataflow with someone else, they can also access it, but each person needs to 'take over' ownership of it every time they want to access the actual M code of the queries.

 

I've seen that VS Code before but never really looked into it.

- I presume it allows you to connect to a source and write M directly on it?

- Does the M extension include Intellisense?

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




It doesn't allow you to connect to a data source.  It doesn't have intellisense, keywords and formatting: Power Query / M Language - Visual Studio Marketplace

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.