Code Monkey home page Code Monkey logo

Comments (4)

sgbaird avatar sgbaird commented on June 8, 2024

Not sure why this only seems to be appearing on Google Colab, but not in local installations. Maybe a version incompatibility?

from mat_discover.

ancarnevali avatar ancarnevali commented on June 8, 2024
_extract_index (c:\Users\anton\AppData\Roaming\Python\Python39\site-packages\pandas\core\internals\construction.py:674)
arrays_to_mgr (c:\Users\anton\AppData\Roaming\Python\Python39\site-packages\pandas\core\internals\construction.py:120)
dict_to_mgr (c:\Users\anton\AppData\Roaming\Python\Python39\site-packages\pandas\core\internals\construction.py:502)
__init__ (c:\Users\anton\AppData\Roaming\Python\Python39\site-packages\pandas\core\frame.py:636)
pf_frac_proxy (c:\Users\anton\miniconda3\envs\matdisc_prova\Lib\site-packages\mat_discover\mat_discover_.py:1369)
plot (c:\Users\anton\miniconda3\envs\matdisc_prova\Lib\site-packages\mat_discover\mat_discover_.py:1314)
<module> (c:\Users\anton\Documents\PythonScripts\MatDiscover\mat_discover_on_batt_data_li_na.py:93)
_run_code (c:\Users\anton\miniconda3\envs\matdisc_prova\Lib\runpy.py:87)
_run_module_code (c:\Users\anton\miniconda3\envs\matdisc_prova\Lib\runpy.py:97)
run_path (c:\Users\anton\miniconda3\envs\matdisc_prova\Lib\runpy.py:268)
_run_code (c:\Users\anton\miniconda3\envs\matdisc_prova\Lib\runpy.py:87)
_run_module_as_main (Current frame) (c:\Users\anton\miniconda3\envs\matdisc_prova\Lib\runpy.py:197)

My callstack on disc.plot()

from mat_discover.

sgbaird avatar sgbaird commented on June 8, 2024

Since changing over to offline.plot(fig) instead of fig.show(), now Google Colab doesn't show any of the plotly figures, only the matplotlib ones, and it runs without error. It seems to save all the appropriate files in the side panel under figures, but the html files need to be downloaded and opened separately.

Related: https://stackoverflow.com/questions/47230817/plotly-notebook-mode-with-google-colaboratory

@ancarnevali I'm wondering if this error has to do with having too few clusters or if it really is a package compatibility.

from mat_discover.

sgbaird avatar sgbaird commented on June 8, 2024

Having trouble reproducing this with the most recent version on Google Colab. In other words, the plotting runs to completion and shows the HTML files now (using recently introduced use_plotly_offline=False kwarg). @ancarnevali if you're still running into this issue with disc.plot() could you open it in a separate issue with a reproducer?

from mat_discover.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.