NLeSC / litstudy

LitStudy: Using the power of Python to automate scientific literature analysis from the comfort of a Jupyter notebook
https://nlesc.github.io/litstudy/
Apache License 2.0
158 stars 50 forks source link

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

Open fzzinchemical opened 5 days ago

fzzinchemical commented 5 days ago

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 commented 5 days ago

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 commented 5 days ago

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'