Forum Replies Created

Page 5 of 5
  • mwoods

    Administrator
    April 4, 2024 at 12:16 pm in reply to: How to reset/reinitialise the sandbox in a topic

    You can revert to the original using git to discard your changes, making sure you shut down your notebook first.

    Steps:

    1. Shut down notebook kernal and the notebook tab – either by right clicking or in the second icon in left hand menu (see image)

    2. Open a terminal – click the + symbol, select Terminal and run git status and git restore on any notebooks that have changes you wish to revert

    3. Reopen notebook – should no longer see your changes


  • mwoods

    Administrator
    March 19, 2024 at 12:10 pm in reply to: greater than or less than ?

    Hi @lestat-jin thanks for flagging this.

    Upon review I agree it is confusing and badly worded, in fact there are a number of small changes I have made to make to make this example clearer including:

    • changing the direction from > to <
    • asking for longitude rather than latitude as this is what we are outputting to console with 0N! so we can better see if it is meeting the checks
    • adding a missing semicolon at then end of the second if statement

    I have attached the updated example with fixes above.

    If you want to get the notebook with these changes you can delete your current directory from the terminal and relaunch the sandbox from the course.

    Thanks for your feedback and helping us to improve the materials !

  • mwoods

    Administrator
    March 11, 2024 at 9:38 am in reply to: May have broken my KX Developer workspace

    Hi @fionan I had a look and reset your workspace for you by redoing the steps in the original README i.e. rerunning setup.sh before opening KX developer. Can you try now? Thanks

  • Hi @natasha-lakhpaty the indexing approach taken in the exercise solution returns the value at the index that is halfway between the sorted list.

    The med function doesn’t have to return an actual distinct value that exists in the list, but instead the arithmetic middle value. Have added a simpler example here – hope this helps!

Page 5 of 5