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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

March 2024  FBC Gallery Image

Fabric Monthly Update - March 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Kudoed Authors