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 jupytext header #3899

Closed
wants to merge 6 commits into from
Closed

Add jupytext header #3899

wants to merge 6 commits into from

Conversation

Devin-Crawford
Copy link
Collaborator

Added the jupytext header for sphinx to the example 02-HFSS/Array.py. This makes it possble to directly view and edit the example with the jupyter notebook editor while developing examples if the jupytext plugin is installed. Markdown cells use markdown instead of restructured text.

Added the jupytext header for sphinx to the example
02-HFSS/Array.py.  This makes it possble to directly view and edit the example with the jupyter notebook editor while developing examples if the jupytext plugin is installed. Markdown cells use markdown instead of reST.
@ansys-reviewer-bot
Copy link
Contributor

Thanks for opening a Pull Request. If you want to perform a review write a comment saying:

@ansys-reviewer-bot review

Copy link

codecov bot commented Nov 22, 2023

Codecov Report

Merging #3899 (4eb641b) into main (09db4b3) will increase coverage by 0.01%.
Report is 8 commits behind head on main.
The diff coverage is n/a.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3899      +/-   ##
==========================================
+ Coverage   81.29%   81.30%   +0.01%     
==========================================
  Files         182      182              
  Lines       63030    63060      +30     
==========================================
+ Hits        51239    51274      +35     
+ Misses      11791    11786       -5     

@MaxJPRey MaxJPRey requested review from Revathyvenugopal162 and removed request for Revathyvenugopal162 November 22, 2023 16:55
@Devin-Crawford Devin-Crawford marked this pull request as ready for review November 22, 2023 19:15
@Samuelopez-ansys
Copy link
Member

@MaxJPRey @SMoraisAnsys @jorgepiloto

@dcrawforAtAnsys has implemented this PoC to use jupytext for the examples, I think it is really great because content and example creation will be much easier.

After installing jupytext, this is how it looks:

image

I am wondering if this will affect the CI/CD, and if we could test it locally before pushing it. It passed all checks, but I think we could have problems when publishing the documentation, maybe at least we could add jupytext in the dependencies?

Thanks!

Copy link
Collaborator

@MaxJPRey MaxJPRey left a comment

Choose a reason for hiding this comment

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

Hi @dcrawforAtAnsys . This is an excellent idea. I started to look at it on my side too.

@SMoraisAnsys
Copy link
Collaborator

Great idea !

@Samuelopez-ansys I don't know if that would affect the CI/CD, I can try to test it locally to see if everything works fine. If this changes are to be added, we might want to add some tests or change the one associated to the examples.

@Samuelopez-ansys
Copy link
Member

@SMoraisAnsys Indeed, we can do it together during the week. The examples are critical because they are built only when we push the tag, but I like this approach to make example creation easier.

@github-actions github-actions bot added the maintenance Package and maintenance related label Dec 1, 2023
Note: this shoudl be removed later on as its
purpose is to see the impact of using jupytex
on the documentation
@SMoraisAnsys
Copy link
Collaborator

@dcrawforAtAnsys I've added the upload, see the artifact down https://github.com/ansys/pyaedt/actions/runs/7058239367

Build documentation and examples, but don't deploy.
Only applied to branches doc/*
@Devin-Crawford
Copy link
Collaborator Author

@Samuelopez-ansys , @Samuelopez-ansys : The Notebook is created correctly but the Markdown cells are rendered literally. I will continue to investigate. I'm closing the PR for now.

@Devin-Crawford Devin-Crawford deleted the doc/add_jupytext_header branch December 3, 2023 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Package and maintenance related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants