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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.