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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
wahmed20
Resolver I
Resolver I

Connecting computer code to notebook

There are some code which can work only in your computer. For example accessing elasticsearch using python client.

 

from elasticsearch import Elasticsearch
es = Elasticsearch(
    hosts=[{'host': 'ip', 'port': 9200}],
    http_auth=('name', 'username'),

)

 


Where the ip is the ip on which elasticsearch is running. This ip can run from my computer only. I want to run this code on the notebook of fabric. What setup I should do in this regrad?

1 ACCEPTED SOLUTION
wahmed20
Resolver I
Resolver I

The code works if you run the notebook with Vs code. 
For further details
https://learn.microsoft.com/en-us/fabric/data-engineering/setup-vs-code-extension

View solution in original post

2 REPLIES 2
wahmed20
Resolver I
Resolver I

The code works if you run the notebook with Vs code. 
For further details
https://learn.microsoft.com/en-us/fabric/data-engineering/setup-vs-code-extension

miguel
Community Admin
Community Admin

Hi!

This question appears to be better suited for the Synapse community which does cover notebooks. This community focuses primarily on the components found inside of the Data Factory which are, today, Data pipelines and Dataflows.

 

I'd encourage you to post this question on the Synapse community.

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Expanding the Synapse Forums

New forum boards available in Synapse

Ask questions in Data Engineering, Data Science, Data Warehouse and General Discussion.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayFBCUpdateCarousel

Fabric Monthly Update - May 2024

Check out the May 2024 Fabric update to learn about new features.