Giter Club home page Giter Club logo

Comments (3)

tcNickolas avatar tcNickolas commented on May 19, 2024 2

I agree, it would be extremely helpful to be able to open namespaces once in the beginning of the notebook and never return to this again, like we do in projects. In the notebook katas it is particularly painful - it is very hard for the learner to figure out that they need to open namespace in each cell, especially since the reference solutions in the project don't have this need.

from iqsharp.

bookRa avatar bookRa commented on May 19, 2024

I, too am having problems opening one Microsoft.Quantum namespace per code cell as mentioned in IntroToIQSharp/Notebook.ipynb .
Getting the same errors as @crazy4pi314 above.
Some more info:

➜  ~ dotnet --info
.NET Core SDK (reflecting any global.json):
 Version:   2.2.107
 Commit:    2212cac826

Runtime Environment:
 OS Name:     Mac OS X
 OS Version:  10.13
 OS Platform: Darwin
 RID:         osx.10.13-x64
 Base Path:   /usr/local/share/dotnet/sdk/2.2.107/

Host (useful for support):
  Version: 2.2.5
  Commit:  0a3c9209c0

.NET Core SDKs installed:
  2.2.107 [/usr/local/share/dotnet/sdk]

.NET Core runtimes installed:
  Microsoft.AspNetCore.All 2.2.5 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All]
  Microsoft.AspNetCore.App 2.2.5 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 2.2.5 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]

To install additional .NET Core runtimes or SDKs:
  https://aka.ms/dotnet-download

Any help would be appreciated. Thanks

-Edit- Also this might be related?
image

from iqsharp.

crazy4pi314 avatar crazy4pi314 commented on May 19, 2024

Wanted to bump this again, I really want using Q# in Jupyter to be a good platform for teaching. I am working on lots of notebooks with library use and it is super annoying to have to open the namespaces for each in every cell. If students have any experience with notebooks, its likely in Python where you can just have one cell with imports at the beginning. Not using this same model introduces a lot of confusion.

from iqsharp.

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.