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

plot_network() got an unexpected keyword argument 'file_name' and other issues #99

Open
fzzinchemical opened this issue Oct 11, 2024 · 2 comments

Comments

@fzzinchemical
Copy link

Sample Code:

citation_network = litstudy.network.build_citation_network(docs)
litstudy.plot_network(citation_network, file_name ='network.html')

Error Output:

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
Cell In[50], line 2
      1 citation_network = litstudy.network.build_citation_network(docs)
----> 2 litstudy.plot_network(citation_network, file_name ='network.html')

TypeError: plot_network() got an unexpected keyword argument 'file_name'

This probalbly also applies to other plots, where the parameter is used. Thus this would need to be tested.

Also: The entire plot seems bugged, where any parameter you give it does not change the output. This issue can also apply to other network

@stijnh
Copy link
Member

stijnh commented Oct 11, 2024

Seems that this parameter is not yet part of the latest release of litstudy that is available on pip.

You can use this command to install the latest version of litstudy directly from github.

pip install git+https://github.com/NLeSC/litstudy

Could you check if this solves the issue?

A new version of litstudy will be released on pip soon in the future.

@fzzinchemical
Copy link
Author

Alright, fetched the latest commit. Unfortunately the issue persists. Thanks for the help @stijnh .

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
Cell In[11], line 2
      1 citation_network = litstudy.network.build_citation_network(docs)
----> 2 litstudy.plot_network(citation_network, file_name='coupling.html')

TypeError: plot_network() got an unexpected keyword argument 'file_name'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants