メインコンテンツへスキップ

grblogtools plotting problems in VS Code

回答済み

コメント

7件のコメント

  • 正式なコメント
    Simranjit Kaur
    • Gurobi Staff
    This post is more than two years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum, or try Gurobot, our chatbot interface offering instant, expert-level support.
  • Matthias Miltenberger
    • Gurobi Staff

    Hi Henrik!

    The default behavior of \(\tt{glt.plot()}\) is to wait until the "type" of plot is selected before actually drawing the plot. You can shortcut this by specifying the "type" right away when calling the function:

    glt.plot(summary, type="box")

    I just tested the notebook in VSCode using the built-in notebook view and right after selecting a plot type, the plot appeared below the selection widget.

    Cheers,
    Matthias

    0
  • Henrik Svärd
    • Gurobi-versary
    • First Comment
    • First Question

    Hello Matthias!

    Thanks for your reply. My problem is that the selection widgets for plot type etc. are not appearing. Specifying the type "box" gives a plot, but I am still missing the dropdown selections for x,y, color etc... 

    This is what it looks like when I run it:

    /Henrik

    0
  • Matthias Miltenberger
    • Gurobi Staff

    Hmm, interesting. Until now, I have only seen cases with the plots not appearing despite selecting everything in the widget.

    I suppose this is a VSCode/Jupyter issue. We are using ipywidgets for the widgets - maybe you need to update that package? If that does not work, I suggest working with the notebook in the browser - this is the most stable way for all those visualizations. Both VSCode and Jupyter are continuously evolving, so there is always the probability of something breaking.

    Cheers,
    Matthias

     

    0
  • Fernando Jimenez
    • Gurobi-versary
    • First Comment

    Hi, I have the same problem. I upgrade all packages but it does not work. I copy the file on google colab and it works. 

    0
  • Riley Clement
    • Gurobi Staff

    The VS Code Jupyter extension has only very very recently started supporting IPyWidgets 8.* - previously it was only up to IPyWidgets 7.*

    - Riley

    1
  • Henrik Svärd
    • Gurobi-versary
    • First Comment
    • First Question

    I tried again today after updating VS Code and sure enough it works fine now! Thanks!

    0

投稿コメントは受け付けていません。