Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add server tutorials to the main tutorials branch #1891

Open
wants to merge 3 commits into
base: doc/new-tutorials-section
Choose a base branch
from

Conversation

luisaFelixSalles
Copy link
Collaborator

@luisaFelixSalles luisaFelixSalles commented Nov 13, 2024

Add a new server tutorial into the "dpf server" section:

  • It adapts the "switch between local and remote server (server types)" how-to

Preview on how it renders:

  • DPF server section main page

image

  • "Switch between local and remote server" tutorial

_D__ANSYSdev_pydpf-core_doc_build_html_user_guide_tutorials_dpf_server_server_types html

@luisaFelixSalles luisaFelixSalles changed the base branch from master to doc/new-tutorials-section November 13, 2024 15:33
@luisaFelixSalles luisaFelixSalles self-assigned this Nov 13, 2024
@luisaFelixSalles luisaFelixSalles changed the title Add server tutorials Add server tutorials to the main tutorials branch Nov 13, 2024
Copy link

codecov bot commented Nov 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.10%. Comparing base (df79026) to head (9b9e26e).

Additional details and impacted files
@@                      Coverage Diff                      @@
##           doc/new-tutorials-section    #1891      +/-   ##
=============================================================
- Coverage                      88.16%   88.10%   -0.07%     
=============================================================
  Files                             83       83              
  Lines                           9961     9951      -10     
=============================================================
- Hits                            8782     8767      -15     
- Misses                          1179     1184       +5     
---- 🚨 Try these New Features:


from ansys.dpf import core as dpf
local_server = dpf.start_local_server()
local_server
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These need to be calls to print, otherwise we just get the repr of the Server object, which looks like this:
image

Suggested change
local_server
print(local_server)

from ansys.dpf import core as dpf
grpc_server_config = dpf.AvailableServerConfigs.GrpcServer
grpc_server = dpf.start_local_server(config=grpc_server_config)
grpc_server
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
grpc_server
print(grpc_server)

@PProfizi
Copy link
Contributor

This tutorial should also describe the as_global parameter and the notion of global server.

@luisaFelixSalles luisaFelixSalles mentioned this pull request Nov 15, 2024
35 tasks
@PProfizi PProfizi added the tutorials Related to PyDPF-Core tutorials label Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tutorials Related to PyDPF-Core tutorials
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants